Re: Problem using JSP expressin in Struts 2

2011-02-12 Thread Chris Pratt
You can use JSP EL just fine (I'd still suggest getting rid of Scriplets, they're just bad mojo), you just can't pass them to the Struts Tags as attributes. You can use your own JSP Tag Libraries (I do), and use EL anywhere on the page with the exception of the tag attributes. And there are alte

Re: Problem using JSP expressin in Struts 2

2011-02-12 Thread Ashish Shrivastava
Thanks a lot Chris. I tried with the option and it is working fine :). We will think about the security risk and decide whether to update or not. But as you mentioned that JSP EL is not supported in struts this mean old JSP applications (which uses scriptlet or JSP EL) either can not be upgraded or

Re: Problem using JSP expressin in Struts 2

2011-02-12 Thread Chris Pratt
JSP Expressions are not allowed in the Struts 2 Tag Libs because of security concerns allowing hackers to use JSP EL to inject OGNL into the tags to do bad things. If you don't care about this problem, you can copy the struts .tld file out of the struts.jar file and add true to all the attributes,