Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » jsp validation error(validation error)
jsp validation error [message #524434] Wed, 31 March 2010 22:05 Go to next message
No real name is currently offline No real nameFriend
Messages: 1
Registered: March 2010
Junior Member
I'm using ganymede and getting an error on a jsp page. The construct that seems to be a problem is as follows:
<c:if test-"${!empty flag}">
<div>
</c:if>
stuff

<c:if test="${!empty flag}">
</div>
</c:if>

The <div> and </div> flags are getting the NO START TAG and NO END TAG errors. Any way to get around this?
Re: jsp validation error [message #524800 is a reply to message #524434] Fri, 02 April 2010 15:09 Go to previous message
Nick Sandonato is currently offline Nick SandonatoFriend
Messages: 126
Registered: July 2009
Senior Member
Unfortunately, the validator does not really understand that what you're doing is pairing the start and end tags through conditional tags. It simply walks through and makes sure that you've got the start/end tags paired when they're nested within another element.

Right now, the only option to get rid of these errors is to modify the "Missing start/end tag" validation severities to Ignore. Go to Window > Preferences. Under Web > HTML Files > Validation you'll find "Missing start tag:" and "Missing end tag:" under the Elements section. Changing their value to Ignore will stop generating Problem markers for these problems. However, it also has the drawback that other elements that aren't blocked within conditional tags will also have their missing start/end tags ignored.
Previous Topic:the librares are null under the src in the web project
Next Topic:No SQL Scrapbook Page
Goto Forum:
  


Current Time: Fri Apr 26 15:53:44 GMT 2024

Powered by FUDForum. Page generated in 0.03224 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top