Tuesday, January 31, 2006

How to configure/use JSTL in RSA 6.0 for WPS v5.1 test env

1. Where to find the tag definition
${portal-test-env-root}/shared/app/WEB-INF/tld

For example:

C:\Program Files\Portal51UTE\PortalServer\shared\app\WEB-INF\tld

2. Where to find the taglib jars
${portal-test-env-root}/shared/app

For example:

C:\Program Files\Portal51UTE\PortalServer\shared\app

3. How to define JSTL in web.xml

<taglib id="PortletTLD">
<taglib-uri>http://java.sun.com/portlet</taglib-uri>
<taglib-location>/WEB-INF/tld/std-portlet.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/tld/c.tld</taglib-location>
</taglib>

<taglib>
<taglib-uri>http://java.sun.com/jstl/core_rt</taglib-uri>
<taglib-location>/WEB-INF/tld/c-rt.tld</taglib-location>
</taglib>

<taglib>
<taglib-uri>http://java.sun.com/jstl/fmt</taglib-uri>
<taglib-location>/WEB-INF/tld/fmt.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jstl/fmt_rt</taglib-uri>
<taglib-location>/WEB-INF/tld/fmt-rt.tld</taglib-location>
</taglib>

0 Comments:

Post a Comment

<< Home