History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: CACHE-61
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Lars Torunski
Reporter: Cal Holman
Votes: 2
Watchers: 3
Operations

If you were logged in you would be able to see more operations.
OSCache

Taglib URI Attribute

Created: 14/Oct/03 02:41 PM   Updated: 10/Apr/05 04:25 AM
Component/s: Tags
Affects Version/s: 2.0
Fix Version/s: 2.1.1

Environment: JSP 1.2, Tomcat 5.0.12


 Description  « Hide
On a JSP 1.2 or later container, tag library declarations are
automatically recognized by the container if they are present in a JAR file that is loaded with the application. Thus, on such a container, you do not *have* to use <taglib> directives in web.xml at all.
The key to making this work is that the URI attribute on your <%@ taglib %> directives must match the <uri> element embedded within the TLD itself. The following lines illustrate the standard tag library URIs for OSCache something like:

<%@ taglib prefix="bean" uri="http://www.opensymphony.com/oscache/ %>

and in the TagLib header section prior to actual tag descriptors (this is the part you guys need to add):

<uri>http://www.opensymphony.com/oscache/&lt;/uri>

This makes upgrading very easy as you do not need to worry about where the taglib is copied to - it is in the JAR.


 All   Comments   Change History      Sort Order:
Davide Baroncelli - [23/Jul/04 11:35 AM ]
Is oscache still being maintained? This is such a small issue to solve!

Michiel Meeuwissen - [28/Jan/05 04:33 AM ]
I see that in oscache-2.1 there is a /oscache uri defined in the tld.

Would this mean that all JSP's must be changed to use the new uri? (when not explicitely mapped in web.xml), because commonly I think we used http://www.opensymphony.com/oscache.


Lars Torunski - [28/Jan/05 01:54 PM ]
I think that the URI change from /oscache to http://www.opensymphony.com/oscache affects all JSP's which explicit use the old URI.

Can this be avoided by declaring the taglib attribute in the web.xml?

see http://wiki.opensymphony.com/display/CACHE/Installation+Guide

Mathias Bogaert - [09/Feb/05 09:27 AM ]
I've changed the URI to http://www.opensymphony.com/oscache.