Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Warning on JSP files under Eclipse 3.4
Warning on JSP files under Eclipse 3.4 [message #224183] Mon, 24 November 2008 18:42 Go to next message
Jaime J. Maiz is currently offline Jaime J. MaizFriend
Messages: 2
Registered: July 2009
Junior Member
Hello,
I am using Eclipse 3.4 under Windows XP. Every JSP file I have created
shows the following warning related to the <@% page %> directive. I
searched the specs and the newsgroup for an explanation and found none.

Here is the error:

Tag (jsp:directive.page) should be an empty-element tag.

This is what the directive looks like in all of my pages:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1" %>

Could anyone explain why is this directive generating this warning? I
understand this is just a warning but it is bugging me.

TIA
Re: Warning on JSP files under Eclipse 3.4 [message #224191 is a reply to message #224183] Mon, 24 November 2008 19:53 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 2342
Registered: July 2009
Senior Member
Jaime J. Maiz wrote:
> Hello,
> I am using Eclipse 3.4 under Windows XP. Every JSP file I have created
> shows the following warning related to the <@% page %> directive. I
> searched the specs and the newsgroup for an explanation and found none.
> Here is the error:
>
> Tag (jsp:directive.page) should be an empty-element tag.
>
> This is what the directive looks like in all of my pages:
> <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
> pageEncoding="ISO-8859-1" %>
>
> Could anyone explain why is this directive generating this warning? I
> understand this is just a warning but it is bugging me.

It's an oddity of the DOM validation that happens in the editor even
for JSP files, reported in
https://bugs.eclipse.org/bugs/show_bug.cgi?id=248963 for another
situation. It's expected to be resolved in WTP 3.0.4 & Ganymede SR2.

--
---
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational


---
Nitin Dahyabhai
Eclipse WTP, IBM
Re: Warning on JSP files under Eclipse 3.4 [message #224209 is a reply to message #224191] Mon, 24 November 2008 22:27 Go to previous message
Jaime J. Maiz is currently offline Jaime J. MaizFriend
Messages: 2
Registered: July 2009
Junior Member
Thank you for the response.
Previous Topic:Content of .settings directory
Next Topic:WTP JPA MySql First Try: Column...cannot be resolved
Goto Forum:
  


Current Time: Sat Dec 20 15:10:01 GMT 2014

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

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