Is there a way to make Resin not try interpreting EL expressions in JSP
pages (while still using fast jstl)?

We have custom tags with string attributes which are evaluated as EL
expressions using the Apache Taglibs implementation. After updating to
4.0, Resin refuses to treat these attributes as Strings.
Example:
> com.caucho.jsp.JspLineParseException: 
> /html/partners/partner_addressEdit.jsp:30: EL expression 
> '${defaultAddress.address}' is only allowed for attributes with 
> rtexprvalue='true'.
>
> ...
> 30:        <exder:get value="${defaultAddress.address}">
> ...
>
>       at com.caucho.jsp.java.JspNode.error(JspNode.java:1883)
>       at com.caucho.jsp.java.JspNode.error(JspNode.java:1872)
>       at com.caucho.jsp.java.JspNode.generateParameterValue(JspNode.java:1292)
> ...
>   

When adding <rtexprvalue>true</rtexprvalue> to the .tld, Resin will
evaluate the expression and pass the String value of the result as the
attribute of the tag. The tag will then try to evaluate this String
value as if it was an EL expression (using the Apache) implementation,
which of course does not give the expected result.

Do we have to change the implementation of all the tags to use
com.caucho.el.Expr instead, or is there another way?

-- 

  </Mattias>



_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to