Thanks for the quick reply! Hmmm ok that seems to work but when I look in the ActionConfig javadoc, I see this for the name attribute:
Name of the form bean, if any, associated with this Action. Shouldn't Struts have that dummy form built in? And refer to that automatically when the name is empty? I forgot to mention that I'm using 1.1b2. Stefan On Thu, Oct 03, 2002 at 11:19:42AM +1000, Steve Vanspall wrote: > You need to define the name attribute for your action mapping. > > <action-mappings> > <action path="/signup/save" type="my.package.SaveSignupAction" > name="MyForm" scope="request"/> > </action-mappings> > > and MyForm needs to be defined in the form-beans section of your > struts-config file. > > e.g. > > <form-beans> > <form-bean name="MyForm" type="com.myapp.forms.MyForm"/> > </form-beans> > > or something similar. > > This can be a dummy form you make up that has no fields. > > then it should go to the action properly > > > > ----- Original Message ----- > From: "Stefan Arentz" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, October 03, 2002 11:09 AM > Subject: Struts 101 - How to create a button that links to an action > > > > I'm really strugling with some simple things that I know how to solve > > with 'plain html' but not with the Struts framework. > > > > One of those things is this, I need a simple button that links to a > > specific action. There are no form elements, just a button. > > > > I tried this: > > > > <html:form action="/signup/save"> > > <html:submit text="Confirm"/> > > </html:form> > > > > with: > > > > <action-mappings> > > <action path="/signup/save" type="my.package.SaveSignupAction" > scope="request"/> > > </action-mappings> > > > > But this bails out with a 'Cannot retrieve definition for form bean'. > > > > Can someone give this newbie a hint :-) > > > > Stefan > > > > > > -- > > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- [EMAIL PROTECTED] / http://www.soze.com/stefan "Think of Your cellular phone as a party line", Ian Goldberg -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>