facebook

Modification of the templates [Closed]

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #208170 Reply

    Hello,

    how can I modify the tags URI in the templates :
    http://jakarta.apache.org/struts/

    by something like /WEB-INF/ ?

    Thanks for your help

    #208172

    Riyad Kalla
    Member

    I don’t understand your question, can you give a little more background? Do you mean how do you modify the URIs for the Struts Taglibs? The URIs are stored in the struts.jar file under the META-INF folder in a tag descriptor.

    #208180

    When I create a JSP page for Struts with the wizard, the URI tags in the new page are like <%@ taglib uri=”http://jakarta.apache.org/struts/tags-html&#8221; prefix=”html”%>.
    I prefer this : <%@ taglib uri=”/WEB-INF/struts-html.tld” prefix=”html” %>, to use local resources and not on http.

    My question is : how modify the template used by the IDE ?

    #208191

    Riyad Kalla
    Member

    Ahh, I think there is some confusion with how those URIs are used. Taglib URIs are used as unique identifiers, so that URI could actually be “hamsandwich” and as long as the web.xml file OR the taglib descriptor in the JAR file used that identifier as well, it would work.

    The fact that Struts uses a URL is just to make it truely unique. If they used something like “html-tags” there are 100s of other frameworks that might use that… its kind of the same reasoning behind sun’s package naming suggestions (use your domain name). Using a URL doesn’t mean any remote resources are validated against or pulled down. If you still want to change this though, you can find the JSP templates in the <myeclipse install directory>\eclipse\plugins\com.genuitec.eclipse.wizards_2.7.1\Templates directory, where you will need to replace “2.7.1” with whatever version of ME you have installed.

    #208204

    Thanks for your answer.
    It’s exactly what I wanted.

    Daniel

    #208205

    Riyad Kalla
    Member

    np, glad it helped.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Modification of the templates [Closed]

You must be logged in to post in the forum log in