Thanks for the hint Nimish. That`s how it is usually done. My problem is slightly different. I want to use another form than the one which is mapped to the action in the struts config. So if action A is mapped to form B in the struts config, I want my options tag to retrieve values from form C. Otherwise I would have to rewrite in B some attributes which are exist already in C and I don`t want to do that. (Neither would I like to delegate).
I supposed it is possible to get a reference to any bean which is set to the session by tbe name attribute of the options tag. But maybe this is not the case for the html tags, though it works fine with the bean write tag. -----Ursprüngliche Nachricht----- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Nimish Chourey , Tidel Park - Chennai Gesendet: Mittwoch, 12. November 2003 13:10 An: Struts Users Mailing List Betreff: RE: Problem with <html:options> - tag Probably .. The form tag has the action , which is linked to some different form . Ie say you have form tag like this <html:form action="/A" method="POST"> And in struts config , the action is mapped to some form say form name B , then your html options tag should be like <html:options name="B" property="vendorsIndex" labelProperty="vendors"/> In case of bean write , it wont look up for the form mapped to the action .. Hence that works .. Check this thing .. Nimish -----Original Message----- From: Peter Friesleben [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 1:52 PM To: [EMAIL PROTECTED] Subject: WG: Problem with <html:options> - tag I'm receiving this error using Tomcat 4.1 and Struts 1.0 "javax.servlet.ServletException: No getter method available for property vendors for bean under name null" I'm using the <html:options> tag this way: <html:select name="someForm" property="vendorID"> <html:options name="someForm" property="vendorsIndex" labelProperty="vendors"/> </html:select> Since formbean "SomeForm" is reused from another context it is explicitly initialized and set to the session in the ActionClass defined in the <html:form> tag of this JSP. Funny thing is if I'm doing <bean:write name="someForm" property="vendors" /> in the same JSP I see the complete list of vendors. Any suggestions? --------------------------------------------------------------------- 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]