I made a simple jsp that tests the JSTL tag fmt:formatDate:
<jsp:useBean id="now" class="java.util.Date"/>
<fmt:formatDate value="${now}" pattern="dd/MM/yyyy"/>
When access directly through JBoss and struts, it works. When tested through
the JBoss portal, with the struts bridge, it gives this exception:
Error Type java.lang.NullPointerException
Stacktrace
org.apache.taglibs.standard.tag.common.core.Util.getRequestLocales(Util.java:281)
org.apache.taglibs.standard.tag.common.fmt.SetLocaleSupport.findFormattingMatch(SetLocaleSupport.java:404)
org.apache.taglibs.standard.tag.common.fmt.SetLocaleSupport.getFormattingLocale(SetLocaleSupport.java:276)
org.apache.taglibs.standard.tag.common.fmt.FormatDateSupport.doEndTag(FormatDateSupport.java:116)
org.apache.jsp.WEB_002dINF.jsp.admin.test1_jsp._jspx_meth_fmt_formatDate_0(org.apache.jsp.WEB_002dINF.jsp.admin.test1_jsp:121)
org.apache.jsp.WEB_002dINF.jsp.admin.test1_jsp._jspService(org.apache.jsp.WEB_002dINF.jsp.admin.test1_jsp:89)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
Is there something special I have to do in order to use this JSTL? I believe I
have the latest versions of all the relevent JARs.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3883458#3883458
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3883458
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user