I think bean:struts is used to access configuration information from
struts-config.xml. Are you trying to use it to access the properties of a
particular form instance? You can do that with bean:write directly if the
form is already in some scope. 

Hal
> -----Original Message-----
> From: Trevor Griffiths [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 09, 2001 7:12 PM
> To: [EMAIL PROTECTED]
> Subject: Problem with bean:struts tag
> 
> 
> Hi,
> 
> I am trying to use the bean:struts and bean:write tags to 
> expose(copy) an
> action form bean and print a property.  However when I use 
> the bean:write
> tag it tells me that there is no getter method for the specified
> property(helloMessage).
> As can be seen in the code below, directly before the bean tags I have
> successfully used the form bean inside the form tags and it prints the
> specified property with no problems. That is: There is a 
> gettter method for
> this particular form bean property, and it works).
> I have assumed that I need to first expose(copy) the form bean with
> bean:struts and then write the property with bean:write. Is 
> this incorrect?
> What am I doing wrong?
> 
> Here is the jsp fragment in question:
> 
> ------------------------------------------------------------
> <html:form action="/helloworld">
>       <html:text property="helloMessage" size="50"/>
> </html:form>
> <br>
> <br>
> <bean:struts id="helloBean" formBean="helloworldForm"/>
> <bean:write name="helloBean" property="helloMessage"/>
> ------------------------------------------------------------
> 
> The form bean xml mapping is:
> <form-bean name="helloworldForm" type ="/HelloworldForm"/>
> 
> Thanks
> 
> Trev...
> 

Reply via email to