Community
Participate
Working Groups
If someone tries to build some JSF application she/he may want to use PRELUDE and CODA files to make headers and footers for all of her/his pages. This is achieved by adding some thing like this (more complex operations may also be used) into web.xml file: <jsp-property-group> <description>JSP configuration of all the JSP's </description> <url-pattern>*.jsp</url-pattern> <include-prelude>/common-jsps/prelude.jspf</include-prelude> <include-coda>/common-jsps/coda.jspf</include-coda> </jsp-property-group> When using these files as headers and footers for JSF/JSP pages, it's correct that the PRELUDE contains all taglib imports plus opening <HTML> and <BODY> tags while the CODA contains ending </BODY> and </HTML> tags. This means that you do NOT place these tag into your JSP/JSF pages. The problem is that Eclipse gives compile errors on just about every page! On the PRELUDE file - because the <HTML> and <BODY> tags are not ended; on the CODA file - because the </BODY> and </HTML> tags exist without the opening tags; on all other pages because they do not have the required imports for the JSP/JSF elements (these are in the PRELUDE file). It would be good if the JSP validator takes into account all the PRELUDE and CODA files included and avoid annoying and unnecessary errors.
This looks like a JSP issue. Copying Nitin.
Could the fix be targeted for WTP 3.1.1?
I'm experiencing this issue as well....would be great to have a fix.
This looks misplaced in JSF product. Like comment 1 suggests, this appears to be a general JSP issue.
Moving it to the right component
Stefan, do you have an example project showing this that you can attach (and that we can be turn into a test)?
*** This bug has been marked as a duplicate of bug 147098 ***