facebook

JSP Fragments

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #228959 Reply

    I am using a third party application. This application uses JSP pages. They have a number of JSP fragments with the “JSP” extension. So, I have a single directory with lots of JSP pages where some pages are top level and others are fragments.

    Is there a way to mark which files are top level and which ones are fragments so that they compile in order? I cannot change the fragment filenames from “JSP” to “JSPF”. I need a way to tell the IDE that this “JSP” should be compiled, while another JSP is an include/fragment.

    Thanks

    #228969 Reply

    Wayne Kidd
    Member

    I tell the jsp compiler to compile jspf types by adding the following servlet mapping to tomcat’s conf/web.xml

    <servlet-mapping>
    <servlet-name>jsp</servlet-name>
    <url-pattern>*.jspf</url-pattern>
    </servlet-mapping>

    There is already one just like it with a url-pattern for *.jsp. Just copy it and change the pattern. There should be something like this in all of the standard app server configurations.

    Wayne

    #228977 Reply

    Riyad Kalla
    Member

    landym,
    If you are asking how to do this within MyEclipse then technically these should be renamed but if you absolute cannot rename them, you can right click on each file, go to Properties and mark them as “derived”, this will tell the validator to skip them (within MyEclipse).

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: JSP Fragments

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