Is it not possible to not use a form at all? Section 1.3 of the user guide says: "At a minimum, a mapping must specify (1) a request path and (2) the object type to act upon the request.". However when I try leaving off the form name in config file, and in html:form tag, I get an error. I can obviously get around it by just using the regular html <form> tag, but would like to keep everything consistant (the reason I don't need a form, is that my action creates performs a download). Cheers for any help, Dave "Dudley Butt@i-Commerce" <Dudley.Butt%za.didata.com on 08/16/2001 02:53:48 AM Please respond to [EMAIL PROTECTED] To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> cc: (bcc: David Hay/Lex/Lexmark) Subject: RE: Linking HREF with Action
In that case you can just use any old actionformobject and asssociate it, what you will then use out of the mapping in the config file is only the action, and just ignore the actionform. <action path="/logon" type="com.didata.itax.payment.web.action.LoginAction" name="any dummy actionform" scope="request" input="/logon.jsp"> <forward name="failure" path="/index.html"/> <forward name="success" path="/login.jsp"/> <forward name="loggedOut" path="/logon.jsp" /> <forward name="buildLeftFrame" path="/leftframe.html" redirect="true" /> <forward name="changePassword" path="/loginForceChangePassword.jsp"/> </action> -----Original Message----- From: Olivier Houyoux [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 16, 2001 8:45 AM To: [EMAIL PROTECTED] Subject: Linking HREF with Action Hi all, I just wanted to know if it's possible to define an Action in the Struts config XML file that would be called from an HTML link (html:link tag) that IS NOT within a form ? I tried but it seems that the framework needs an ActionForm bean associated with each Action. Any idea, comments ? Thanks for your help. ------------------------------------------------------------ NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar... Une gamme d'outils gratuits et performants à votre service. Web/Wap : www.netcourrier.com Téléphone/Fax : 08 92 69 00 21 (0,34 E TTC/min - 2,21 F TTC/min) Minitel: 3615 NETCOURRIER (0,15 E TTC/min - 1,00 F TTC/min) ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com **********************************************************************