Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » JSP 2.0 validation on a Java Project (not a Dynamic Web project)
JSP 2.0 validation on a Java Project (not a Dynamic Web project) [message #496693] Wed, 11 November 2009 00:22 Go to next message
Aiman Alsari is currently offline Aiman AlsariFriend
Messages: 3
Registered: November 2009
Junior Member
Hi there,

I am having a problem with validating my JSPs. I can do the following without Eclipse complaining:

<%@taglib uri='/WEB-INF/cheese.tld' prefix='cheese' %>

but when I try to use 'tagdir' which is JSP 2.0 syntax, it does not allow me to, saying that 'uri' is a required attribute and that there is no such thing as a 'tagdir' attribute. e.g.

<%@taglib tagdir="/tags/" prefix="m" %>

From about Eclipse:
Eclipse Java EE IDE for Web Developers.

Build id: 20090920-1017

This code resides in a Java Project rather than a Dynamic Web Project, but I can not found anywhere that tells the JSP validator to switch to JSP 2.0 validation.

Is the only way around this to switch to a dynamic web project or can I somehow fix Eclipse and tell it to validate correctly?

Any help would be greatly appreciated.
Re: JSP 2.0 validation on a Java Project (not a Dynamic Web project) [message #496892 is a reply to message #496693] Wed, 11 November 2009 16:33 Go to previous messageGo to next message
Ian Tewksbury is currently offline Ian TewksburyFriend
Messages: 48
Registered: July 2009
Location: RTP, NC, USA
Member
Alman,

Can you check what version of WTP you are running on? I expect 3.1, but if you could check that would be helpful.

I tried this scenario on the latest stable WTP 3.2 milestone and did not see the problem but I think JSP 2.0 validation should be present in 3.1 as well, hence my curiosity about your WTP version.

Thank You,

~Ian


Ian Tewksbury
WTP JavaScript Tools
IBM Rational
-----
“When once you have tasted flight, you will forever walk the earth with your eyes turned skyward, for there you have been, and there you will always long to return.” ~Leonardo da Vinci
Re: JSP 2.0 validation on a Java Project (not a Dynamic Web project) [message #496950 is a reply to message #496892] Wed, 11 November 2009 20:15 Go to previous messageGo to next message
Aiman Alsari is currently offline Aiman AlsariFriend
Messages: 3
Registered: November 2009
Junior Member
Hey Ian, thanks for the reply. The version of WTP is as follows:

Eclipse Web Developer Tools

Version: 3.1.1.v200908120400-7R77FSpEVw2xXR0CtKvX6bG6a2qU
Build id: 20090616035105

I've tried updating it but the eclipse updater says it is up to date.
Re: JSP 2.0 validation on a Java Project (not a Dynamic Web project) [message #496980 is a reply to message #496950] Thu, 12 November 2009 03:53 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

Aiman Alsari wrote:
> Hey Ian, thanks for the reply. The version of WTP is as follows:
>
> Eclipse Web Developer Tools
>
> Version: 3.1.1.v200908120400-7R77FSpEVw2xXR0CtKvX6bG6a2qU
> Build id: 20090616035105
>
> I've tried updating it but the eclipse updater says it is up to date.

Which DTD/Schema is your WEB-INF/web.xml file referencing? In a
Java project, we attempt to infer the Servlet and JSP specification
versions based on that (or the version attribute of the web-app
element if it's present), and earlier versions of the specs didn't
have a tagdir attribute available.

---
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: JSP 2.0 validation on a Java Project (not a Dynamic Web project) [message #498883 is a reply to message #496693] Thu, 19 November 2009 00:02 Go to previous message
Aiman Alsari is currently offline Aiman AlsariFriend
Messages: 3
Registered: November 2009
Junior Member
Nitin, you have solved my issue! Thanks so much!

The web.xml had the following:

<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">

which I have now changed to:

<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.5//EN" "http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">

and all is well! I appreciate your effort.
Previous Topic:Re: XML Schema Definition Editor with KEY and KEYREF
Next Topic:Download JSF implementation libaries isn't working
Goto Forum:
  


Current Time: Thu Apr 18 23:38:42 GMT 2024

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

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

Back to the top