I was just wrestling with the same problem and found the following in the
JSP 1.2 Spec.

JSP.2.13.1 Request Time Attribute Values

<snip>
The expression must appear by itself (multiple
expressions, and mixing of expressions and string constants are not
permitted).
</snip>

HTH,

robert


> -----Original Message-----
> From: Maciej Kołodziej [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 15, 2002 10:48 AM
> To: Struts Users Mailing List
> Subject: Re[2]: Problem with mapped properties
>
>
> Hi,
>
> In Your mail sent Tuesday, January 15, 2002 You wrote:
>
> RF> I'm not really sure in understand you problem but in order for
> RF> "property(key)" to work, you need to have the following
> methods on your form
> RF> bean:
>
> RF>   public Object getProperty(String key)
> RF>   public void setProperty(String key, Object value)
>
> Yes,  I  have  these methods, and it's not the problem. The problem is
> that  I  can't  insert  dynamic  content  into  jsp  tags, when I have
> brackets in it. Like I wrote:
>
> <html:text property="<%=key%>"/>
>
> works and:
>
> <html:text property="property(<%=key%>)"/>
>
> doesn't work and I just get:
>
> <input type="text" name="property(<%=key%>)">
>
> on  the output.
> That means, that in the second case java code fragment
> denoted by <%= and %> is not parsed and is treated as text.
>
>
> --
> Best regards,
>  Maciej
>
>
> --
> 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]>

Reply via email to