Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [Wtp-wst-dev] error message for footer.jsp


Hi John,
        First off, designating your file as a jsp fragment won't stop the html syntax validator from running on your fragment file.  See https://bugs.eclipse.org/bugs/show_bug.cgi?id=149279  At this point, the only thing you can do is turn off HTML syntax validation.  
To do this for a specific project:
1. In the navigator or project explorer, bring up the context menu of your project and select Properties
2. Select Validation
3. Check "Override validation preferences"
4. Uncheck "HTML Syntax Validator"

To do this for all projects in workspace:
1. Window -> Preferences -> Validation
2. Uncheck "HTML Syntax Validator"

If you are still curious as to how to designate your file as a jsp fragment, our tooling automatically determines your file is a jsp fragment if you use the jspf extension.  If you want to keep the jsp extension, you can specifically associate your file to jsp fragments:
1. Go to Window -> Preferences -> General -> Content Types
2. Text -> JSP -> JSP Fragment
3. Add... new file association and add "footer.jsp"

Now footer.jsp will be considered a jsp fragment.  Once bug 149279 is fixed, you'll be able to turn off html syntax validation on your fragment.  If you want to be notified of when bug 149279, please add yourself to the CC list of the bug.

Hope this helps!

P.S.  For future reference, this mailing list is intended for discussion on the development of the WTP project itself.  For other questions, such as WTP user questions, please ask the newsgroup: news://news.eclipse.org/eclipse.webtools




John McPeek <john@xxxxxxxxx>
Sent by: wtp-wst-dev-bounces@xxxxxxxxxxx

10/14/2006 09:26 PM

Please respond to
"Web Standard Tools developer discussions." <wtp-wst-dev@xxxxxxxxxxx>

To
wtp-wst-dev@xxxxxxxxxxx
cc
Subject
[Wtp-wst-dev] error message for footer.jsp





Hi all,
I have a footer.jsp that as you may have guest is not a full html page. I get a couple errors and
warnings like "No start tag(<body>)." and "Invalid location of tag  (body).". Is there a way to designate a jsp as a fragment so that it will not cause the errors and warnings. I know it won't stop the app from working, but I am phobic about leaving that stuff to build up. I was on a project once that ran at about 20,000 warnings. There were too many problems to count where a warning clearly pointed to a problem that took hours to track down, but there were so many that you couldn't tell when something new popped up.

Thanks,
John McPeek
_______________________________________________
wtp-wst-dev mailing list
wtp-wst-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/wtp-wst-dev


Back to the top