users@glassfish.java.net

JSTL diferences in GlassFish V3

From: <glassfish_at_javadesktop.org>
Date: Mon, 30 Aug 2010 07:26:44 PDT

Hi,

I'm working on migrating from GlassFish V2.1 to GlassFish V3. One of the migration issues I've come across is that JSTL's namespace has changed. I have to update all of my facelet templates from:

xmlns:c="http://java.sun.com/jstl/core"

to the new namespace:

xmlns:c="http://java.sun.com/jsp/jstl/core"

The difference is the "/jsp/" part. I didn't think Java EE 6 was allowed to break backward compatibility?

Once I changed the namespace in all of my templates I could run my application, but I get a new error: "<c:set> var set with null or empty value"


[#|2010-08-30T10:01:30.553-0400|WARNING|oracle-glassfish3.0.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=30;_ThreadName=http-thread-pool-8080-(1);|StandardWrapperValve[Faces Servlet]: PWC1406: Servlet.service() for servlet Faces Servlet threw exception
javax.faces.view.facelets.TagException: /D:/dev/abc/ProjectName/runtime data/themes/default/MyTemplate.xhtml @166,74 <c:set> var set with null or empty value
        at com.sun.faces.facelets.tag.jstl.core.SetHandler.apply(SetHandler.java:113)
        at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:91)
        at com.sun.faces.facelets.tag.jstl.core.ChooseWhenHandler.apply(ChooseWhenHandler.java:77)
        at com.sun.faces.facelets.tag.jstl.core.ChooseHandler.apply(ChooseHandler.java:99)
....


It appears that JSF/Facelets is now responsible for implementing JSTL and it has further broken backward compatibility by making c:set not allow empty String or null.

http://www.docjar.com/html/api/com/sun/faces/facelets/tag/jstl/core/SetHandler.java.html

(lines 112 - 114)

I was hoping that maybe I could continue using the old JSTL with the old namespace by installing the necessary .jar files into GlassFish V3 using update tool, but then I get a NullPointerException when trying to install updatetool:

https://glassfish.dev.java.net/issues/show_bug.cgi?id=13183

Using the web admin console I was able to see the list of available addons, and don't see anything that specifically mentions "JSTL".

Please help me migrate to GlassFish V3.


Thanks,
Ryan
[Message sent by forum member 'rdelaplante']

http://forums.java.net/jive/thread.jspa?messageID=481279