Wes

Thanks for your quick response.  You gave me the clue I needed!.  OK, so I
had this statements in my jsp:

<td><ww:radio theme="simple" name="responses[%{questionNo}].value"
list="%{#{5:''}}" /></td>

which produced the following error message:

org.apache.jasper.JasperException:
/WEB-INF/pages/assessment/questions.jsp(33,20) PWC6038: "%{#{5:''}}"
contains invalid expression(s): javax.el.ELException: Error Parsing:
%{#{5:''}}

I escaped the #{ as follows:

<td><ww:radio theme="simple" name="responses[%{questionNo}].value"
list="%{\#{5:''}}" /></td>

but that gave me the error:

tag 'radio', field 'list', name 'responses[1].value': The requested list key
'%{\#{5:''}}' could not be resolved as a
collection/array/map/enumeration/iterator type. Example: people or
people.{name} - [unknown location]

so I changed it to this:

<td><ww:radio theme="simple" name="responses[%{questionNo}].value"
list="[EMAIL PROTECTED]@{5:''}}" /></td>

and that gave me:

tag 'radio', field 'list', name 'responses[1].value': The requested list key
'[EMAIL PROTECTED]@{5:''}}' could not be resolved as a
collection/array/map/enumeration/iterator type. Example: people or
people.{name} - [unknown location]

so another change:

<td><ww:radio theme="simple" name="responses[%{questionNo}].value"
list="[EMAIL PROTECTED]@{5:''}" /></td>

which still gives me:

tag 'radio', field 'list', name 'responses[1].value': The requested list key
'[EMAIL PROTECTED]@{5:''}' could not be resolved as a
collection/array/map/enumeration/iterator type. Example: people or
people.{name} - [unknown location]

so yet another change:

<td><ww:radio theme="simple" name="responses[%{questionNo}].value"
list="[EMAIL PROTECTED]@{5:''}}" /></td>

which worked as does:

<td><ww:radio theme="simple" name="responses[%{questionNo}].value"
list="[EMAIL PROTECTED]@{5:''}" /></td>

which also works.  Just to amke sure, I checked that the last change is
backward compatible with Tomcat 5.5.23 (and therefore JSP 2.0).

Phil
-- 
View this message in context: 
http://www.nabble.com/JasperException-and-javax.el.ELException-when-running-under-Jetty-tf4800540.html#a13737642
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to