Powered by Syntax Highlighter scripts!

tag libs in 2.3 and 2.4 webapp

Recently came across migrating the 2.3 Webapp to 2.4 webapp and one of new learning is to change the taglib directives.
Taglibs in web.xml of 2.3 is as below:
<taglib>
<taglib-uri>/spring</taglib-uri>
<taglib-location>/WEB-INF/lib/spring.tld</taglib-location>
</taglib>
To make the same tags work in 2.4 web-apps the above section should be encapsulated in tag <jsp-config> as given below.
<jsp-config>
<taglib>
<taglib-uri>/spring</taglib-uri>
<taglib-location>/WEB-INF/lib/spring.tld</taglib-location>
</taglib>
</jsp-config>

ref: http://forums.sun.com/thread.jspa?threadID=691985

No comments: