Re: This absolute uri (<a href="http://www.opensymphony.com/sitemesh/decorator">http://www.opensymphony.com/sitemesh/decorator</a>) ...
Matt Raible <[email protected]>
| Newsgroups | gmane.comp.web.sitemesh.general |
|---|---|
| Message-ID | <[email protected]> |
Actually, this should work on Tomcat 4.1.x - I believe it's a JSP 1.2 thing. I've used this mechanism (no taglib declarations in web.xml) successfully with Tomcat 4.1.x, but have found it fails on Tomcat 4.0.x. Matt On Apr 6, 2005 7:18 AM, James Cook <[email protected]> wrote: > > -----Original Message----- > > From: Bob Baker [mailto:[email protected]] > > > > I'm getting the following error when I try to run my application after > > deployment. > > > > "org.apache.jasper.JasperException: This absolute uri > > (http://www.opensymphony.com/sitemesh/decorator) cannot be resolved in > > either web.xml or the jar files deployed with this application" > > > > Could this be a Tomcat version issue? I develop on Tomcat 5.0, but my > > hosting service is running 4.1.29. > > Yes, it is probably a Tomcat version issue. Tomcat 5.x is a servlet 2.4/JSP > 2.0 container while Tomcat 4.x is a servlet 2.3/JSP 1.2 container. In JSP > 2.0, Sun spec'd that the configuration of TLD files (in the web.xml) is > optional if the tag library's jar files were properly organized. > > Try adding the TLD configuration for sitemesh to your web.xml file. > > <taglib> > <taglib-uri>http://www.opensymphony.com/sitemesh/decorator</taglib-uri> > <taglib-location>/WEB-INF/lib/sitemesh-decorator.tld</taglib-location> > </taglib> > > <taglib> > <taglib-uri>http://www.opensymphony.com/sitemesh/page</taglib-uri> > <taglib-location>/WEB-INF/lib/sitemesh-page.tld</taglib-location> > </taglib> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]