The trigger for form-bean creation is the <html:form..> tag in your JSP. If a form bean is not found in the proper scope when the <html:form..> tag is encountered duting the JSP parsing, Struts will create one. The other option is to explicitly create a form bean (in a "form initializer" action) and invoke the action before the form is rendered.
You may be attempting to do a <bean:define..> before an <html:form..> - do you have a fragment from your JSP? ..Hrishi > -----Original Message----- > From: Duan Qiang [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 18, 2003 7:52 PM > To: Struts Users Mailing List > Subject: how to get the formbean in script > > > Hi, > > I have a formbean defined as "test", how can I get the > formbean in JSP so > that I can better control it rather than using <bean:write name="test" > property = "xxx "/>. > > I tried to use > > <bean:define id="test" name="test" /> but I got the exception > that "no test > found in any scope". > > I have one question, when the formbean is initialized ? when the page > containing the formbean is shown for the first time, the bean > should exists > in proper scope? write? > > Thx. > -- ______________________________ Hrishi Dixit Finaplex 415-490-2236 work 415-297-2722 cell [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]