use the same name you assigned to the form in struts-config.xml form-bean in struts-config.xml <form-bean name="form.myForm" type="your.package.Form" />
in the jsp file <bean:write name="form.myForm" property="field" /> note the form.myForm must be assigned to the action in the <html:form action="/myAction.do"> Henrique Viecili ----- Original Message ----- From: "Julia Weaver" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, April 23, 2004 1:20 PM Subject: how to do "<bean:write" without "name" attribute? > Hi, > > I get this error massage: > Cannot find bean form in any scope' > > in my jsp file: > > <html:form action="/LinkOperations" > > > <bean:write name="form" property="pType" /> > > What attribute should for name? > > How I can do "<bean:write" without "name" attribute? > > Thanks! > > > > > > > > __________________________________ > Do you Yahoo!? > Yahoo! Photos: High-quality 4x6 digital prints for 25¢ > http://photos.yahoo.com/ph/print_splash > > --------------------------------------------------------------------- > 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]