On 09/25/2012 03:53 PM, Matt Pangaro wrote:
> We have a number of JSPX files that work properly in 3.1.7a, but are failing 
> now in versions 4.0.20 and 4.0.31 with problems in the encoding. The question 
> is whether the source JSPX file needs to be parsed properly as XML prior to 
> processing, or after. The example below illustrates it:
>
> This code works in 3.1.7a, but not 4.0.20/31:
> <c:if test="${variable eq 'Value' && !variable2 eq 'value2'}">
>
> Giving the error msg:
> [11:34:11.125] {resin-port-8080-54} invalid expression `variable eq 'Value' 
>  !variable2 eq 'value2''
>
> Note that the && are missing.
>
> Changing "&&" to "and" will make it work again in Resin 4.0.x:
>   <c:if test="${variable eq 'Value' and !variable2 eq 'value2'}">
>
> We also have a small number of scriptlet tags that use &amp; or &#38; for 
> this. We just want to confirm the order parsing/processing, per the spec, and 
> see whether the behavior we're seeing is expected.

It's an XML file first, and then the contents of the XML attribute are 
parsed.

So the "&" needs to become &amp; (or use "and")

-- Scott

>
> Matt Pangaro
> Lokitech >> software . strategy . design
> http://www.lokitech.com
> m. 1.301.728.6906
> f. 1.815.364.0656
> e. ma...@lokitech.com
>
>
>
> _______________________________________________
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest



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

Reply via email to