Hello All,
I have found that the EL expressions in JSP are not getting evaluated in
petstore. I have tried to excute standard-examples.war (JSTL tag lib example).
And it is working fine. And the JSP translated java source looks like below in
caseof standard-examples.war
----------------------------------------------------------------------------------
// c:out
org.apache.taglibs.standard.tag.rt.core.OutTag _jspx_th_c_out_11 =
(org.apache.taglibs.standard.tag.rt.core.OutTag)
_jspx_tagPool_c_out_value_nobody.get(org.apache.taglibs.standard.tag.rt.core.OutTag.class);
_jspx_th_c_out_11.setPageContext(_jspx_page_context);
_jspx_th_c_out_11.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_if_2);
_jspx_th_c_out_11.setValue((java.lang.Object)
org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${status.count}",
java.lang.Object.class, (PageContext)_jspx_page_context, null, false));
----------------------------------------------------------------------------------
But in case of petstore the JSP translated java code looks like below for
expressions,
----------------------------------------------------------------------------------
// c:set
org.apache.taglibs.standard.tag.el.core.SetTag _jspx_th_c_set_6 =
(org.apache.taglibs.standard.tag.el.core.SetTag)
_jspx_tagPool_c_set_var_value_nobody.get(org.apache.taglibs.standard.tag.el.core.SetTag.class);
_jspx_th_c_set_6.setPageContext(_jspx_page_context);
_jspx_th_c_set_6.setParent((javax.servlet.jsp.tagext.Tag)
_jspx_th_waf_cache_0);
_jspx_th_c_set_6.setValue("${catalog.products}");
_jspx_th_c_set_6.setVar("pageResults");
----------------------------------------------------------------------------------
Please check the difference in setvalue(..) method,
1. _jspx_th_c_out_11.setValue((java.lang.Object)
org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${status.count}",
java.lang.Object.class, (PageContext)
2. _jspx_th_c_set_6.setValue("${catalog.products}");
proprietaryEvaluate(..) method is not present in later case.
Can anyone help to resolve the issue. ?
Thanks And Regards,
Jitesh
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3929959#3929959
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3929959
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user