You're right, Avinash. I could have used the name bean in html:text to
populate the field w/ its property. But your example is useful to assign a
property value of a bean to another property.

Thanks,

-Frank

> -----Original Message-----
> From: Avinash Gangadharan [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 02, 2004 4:10 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Why <bean:write...> does not work
>
>
> Frank,
>     You cannot have that working. To do something like that you'll need to
> use the html-el tags along with JSTL core tags and do something like
>
> <c:set var="param" value="<%=Constants.GROUP_RESULT %>"/>
> <html-el:text maxlength="50" property="groupName" size="32"
> value="${param}"/>
>
> Ofcourse you would need to include those taglibs ( core and -el ).
>
> But why do you want to set the value as the form bean should populate it
> using the
> Property ("groupName") of the bean.
>
> Avinash
>
>
>
> -----Original Message-----
> From: Frank Nguyen [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 02, 2004 3:50 PM
> To: Struts Users Mailing List
> Subject: Why <bean:write...> does not work
>
>
> I have a form for record updating. To refill a field (called
> groupName) with
> a bean's (GROUP_RESULT, saved by setAttribute()) property value, I do:
>
> <html:form>
> ...
> <html:text maxlength="50" property="groupName" size="32" value='<%= <bean:
> write name='<%= Constants.GROUP_RESULT %>' property="groupName" /> %>'/>
>
> I kept getting compilation error:
>
> edit_group.jsp(28,93) Attribute value should be quoted
>       at
> org.apache.jasper.compiler.JspReader.parseToken(JspReader.java:487)
>       at
> org.apache.jasper.compiler.JspReader.parseAttributeValue(JspReader
> .java:533)
>       at
> org.apache.jasper.compiler.JspReader.parseTagAttributes(JspReader.
> java:644)
>
> Does anyone know why ? Thanks in advance.
>
> -Frank
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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

Reply via email to