Hi,

I have an expression that I want to get evaluated in a tag attribute. The 
expression also contains a ${NODE.id} syntax which I want to escape.

 

The expression appears below. If I type this directly in the JSP page, it works 
fine. However if I have it as an attribute for a custom tag, it throws the 
exception shown below. NOTE : This works in 6.0.18 however when I changed the 
servlet container to 6.0.20 with no change to the tag or jsp code, that's when 
I started seeing this problem. 

 

${jsObject}.expandHandler(${'${NODE.id}'},${'${NODE.treeNodeTypeIndex}'})

Exception Thrown
SEVERE: Servlet.service() for servlet jsp threw exception
org.apache.el.parser.ParseException: Encountered " <ILLEGAL_CHARACTER> "\' "" 
at line 1, column 3.
Was expecting one of:
    <INTEGER_LITERAL> ...
    <FLOATING_POINT_LITERAL> ...
    <STRING_LITERAL> ...
    "true" ...
    "false" ...
    "null" ...
    "(" ...
    "!" ...
    "not" ...
    "empty" ...
    "-" ...
    <IDENTIFIER> ...
    
 at org.apache.el.parser.ELParser.generateParseException(ELParser.java:2142)
 at org.apache.el.parser.ELParser.jj_consume_token(ELParser.java:2024)
 at org.apache.el.parser.ELParser.Unary(ELParser.java:951)
 at org.apache.el.parser.ELParser.Multiplication(ELParser.java:711)
 at org.apache.el.parser.ELParser.Math(ELParser.java:631)
 at org.apache.el.parser.ELParser.Compare(ELParser.java:443)
 at org.apache.el.parser.ELParser.Equality(ELParser.java:337)
 at org.apache.el.parser.ELParser.And(ELParser.java:281)
 at org.apache.el.parser.ELParser.Or(ELParser.java:225)
 at org.apache.el.parser.ELParser.Choice(ELParser.java:182)
 at org.apache.el.parser.ELParser.Expression(ELParser.java:174)
 at org.apache.el.parser.ELParser.DynamicExpression(ELParser.java:146)
 at org.apache.el.parser.ELParser.CompositeExpression(ELParser.java:43)
 at 
org.apache.el.lang.ExpressionBuilder.createNodeInternal(ExpressionBuilder.java:93)
 at org.apache.el.lang.ExpressionBuilder.build(ExpressionBuilder.java:150)
 at 
org.apache.el.lang.ExpressionBuilder.createValueExpression(ExpressionBuilder.java:194)
 at 
org.apache.el.ExpressionFactoryImpl.createValueExpression(ExpressionFactoryImpl.java:68)
 at 
org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:934)
 at 
org.apache.jsp.blog.appView.explorerTree_jsp._jspx_meth_jsc_005ftree_005f0(explorerTree_jsp.java:105)

Thanks,

Leena
                                          
_________________________________________________________________
Hotmail: Trusted email with powerful SPAM protection.
http://clk.atdmt.com/GBL/go/201469227/direct/01/

Reply via email to