Like I say, the expression captures the semantic meaning -- obviously syntactically wrong. So, do u have any idea on how to dynamically name setters for a Mapped property?
Any help is greatly appreciated. Thanks, --Mike -----Original Message----- From: Robert Taylor [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 9:41 AM To: Struts Users Mailing List Subject: RE: Mapped Property? Iinterpolated runtime values are forbidden? See JSP Spec: 2.13.1: "The expression must appear by itself (multiple expressions, and mixing of expressions and string constants are not permitted)." You could try this: [JSP] ... <logic:iterate id="unpaidCitation" name="unpaidCitaions" > <tr> <td><% String property = "payCitation(" + unpaidCitation.getCitation() + ")"; %> <html:checkbox property="<%=property%>)"/> <bean:write name="unpaidCitation" property="citation" filter="true"/> </td> > -----Original Message----- > From: Michael Marrotte [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 22, 2003 9:16 AM > To: Struts Users Mailing List > Subject: Mapped Property? Iinterpolated runtime values are forbidden? > > > I'm trying to dynamically write the setter values for a "mapped" property. > But, I get the following error: > > 500 Servlet Exception > /tt-pay/pages/UnpaidCitations.jsp:20: interpolated runtime values are > forbidden > by the JSP spec at `payCitation(<%= unpaidCitation.getCitation() %>)' > > > ------------------------------------------------------------------ > ---------- > ---- > Resin 2.1.4 (built Fri Aug 2 14:16:52 PDT 2002) > > > >From the following implementation, which semantically expresses the goal: > > [ActionForm] > ... > public final class CheckoutForm extends ActionForm { > private HashMap payCitations = new HashMap(); > > public Object getPayCitation(String key) { > return (payCitations.get(key)); > } > > public void setPayCitation(String key, Object value){ > payCitations.put(key, value); > } > ... > > [JSP] > ... > <logic:iterate id="unpaidCitation" name="unpaidCitaions" > > <tr> > <td> > <html:checkbox property="payCitation(<%= unpaidCitation.getCitation() > %>)"/> > <bean:write name="unpaidCitation" property="citation" filter="true"/> > </td> > ... > > Any ideas on what's wrong here or how to do this another way, with a Map > (trying to stay away from idexes)? > > --Mike > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>