There is no such tag, however, in your action do:
request.setAttribute("myformbean", form)
and your jsp below will work...
Abdullah
-----Original Message-----
From: Schaub, Stephen [mailto:[EMAIL PROTECTED]
Sent: Monday, July 11, 2005 3:08 PM
To: Struts Users Mailing List (E-mail)
Subject: Displaying data from a form bean
Newbie question:
Struts lets me bind ActionForm properties to HTML form components like this:
<html:form action="confirm.do">
Enter customer name: <html:text property="customer" />
...
</html:form>
I don't have to name the form bean, because Struts will look it up in the
struts-config file for me.
I'm trying to get Struts to output the contents of an ActionForm property,
without binding it to an input control. Currently, I'm using <c:out> to render
the display-only info. However, this requires me to name the form bean
explicitly, which I would like to avoid:
<html:form action="confirm.do">
<c:out value="${myformbean.product}" />
Enter customer name: <html:text property="customer" />
...
</html:form>
I looked through the struts <html:> tags looking for one that simply emits the
data in the specified form bean, but I can't find one. What am I missing?
Stephen
---------------------------------------------------------------------
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]