Though it does not seem to be documented well, but some (many, all?) tags support textual content, like a regular XML element. This would look kind of like this:
<html:hidden property="resource"> <bean:write name="resource" property="code" scope="request"/> </html:hidden> I haven't tried it, but this might work. Michael. On 5/27/05, Jim Coble <[EMAIL PROTECTED]> wrote: > In my JSP html:form, I want to have the value of a hidden field set to the > (String) value of a property of a request-scoped attribute. I tried using > a "bean:write" as the argument to the "value=" property of the > "html:hidden" tag, like this ... > > <html:hidden property="resource" value="<bean:write name=\"resource\" > property=\"code\" scope=\"request\"/>" /> > > but, on the resulting page, the value of the hidden field was set to the > string ... > > <bean:write name="resource" property="code" > scope="request"/> > > not the value of the "code" property of the request-scoped "resource" > attribute. > > I presume I could set the value of the html:hidden field using JSP <%= %> > syntax but I was trying to see if I could do it using the Struts taglibs. > > Any ideas? > > Thanks. > --Jim > > ================================== > Jim Coble > Senior Technology Specialist > Center for Instructional Technology > Email: [EMAIL PROTECTED] > Voice: 919-660-5974 Fax: 919-660-5923 > Box 90198, Duke University > Durham, NC 27708-0198 > ================================== > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]