• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSTL, problems with TLD/DTDs

 
Josiel Oliveira
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, All!
I�m trying to use the tag c:import from the
JSTL 1.0 EA2, but I always get the message
"unknown element (tlibversion, jspversion,...)", what prevents my page to run.
What can be wrong?
I�ve put the c.tld in my /WEB-INF directory, and the standard.jar and jstl.jar in /WEB-INF/lib
I tried to redirect the dtd url in c.tld for myself machine, and got the error "Relative URI 'whatever-I-put'; can not be resolved without a document URI"

Using: JBuilder6, Tomcat 3.2.3 (embedded), W2K

Help shall be greatilly appreciated.

PS: The uri in c.tld (http://java.sun.com/jstl/ea/core) points to a "not found" page. Is it a point?
 
Simon Brown
sharp shooter, and author
Ranch Hand
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSTL requires a JSP 1.2 compatible web container, which Tomcat 3.x isn't. I'm not sure whether you can easily upgrade the embedded version of Tomcat, so you might be better off just downloading Tomcat 4.0 from the http://jakarta.apache.org site.
Also, you might want to try out version 1.0 of the JSTL now that it has been released.
Cheers
Simon
 
alex reznik
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, i am also having a problem with recognizing the uri's in the taglib directive on my jsp's
i am running Tomcat 4.0.4 and NT platform. the web.xml is set up to recognize the absolute uri's but does not do so. any suggestions?
 
Simon Brown
sharp shooter, and author
Ranch Hand
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
With Tomcat 4.0.4, all that you need to do is drop the jstl.jar and standard.jar files into the WEB-INF/lib directory - you don't actually need to set any mappings up in the web.xml file.
You can then reference the tags as follows, for example...

Is this what you are doing?
Simon
 
Shawn Bayern
Author
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by alex reznik:
hi, i am also having a problem with recognizing the uri's in the taglib directive on my jsp's
i am running Tomcat 4.0.4 and NT platform. the web.xml is set up to recognize the absolute uri's but does not do so. any suggestions?

On Tomcat 4.0.4, you may need to add a 'temp' directory (to the same directory where 'webapps' and 'work' exist) to get Tomcat to recognize automatically deployed JSP tag libraries (which the JSP 1.2 spec requires).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!