org.apache.struts.actions.DispatchAction
as it caters for your situation...
public class MyAction extends DispatchAction {
//instead of execute you use the parameter defined in config
public final ActionForward confirmDelete( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
} }
//struts-config.xml
<action path="/confirm" type="com.mydomain.struts.MyAction" scope="request" parameter="action"....
//jsp
<html:link page="/confirm.do?action=confirmDelete"> foo </html:link>
HTH
mark
On Monday, July 7, 2003, at 01:36 PM, Heiko Jürgens wrote:
Hello, i'm using this dynamic link to pass a parameters to an action:
http://localhost:8081/deleteEvent.do?action=confirmDelete
String action = (String) request.getAttribute("action");
Use getParameter instead of getAttribute!
HTH, Heiko
--------------------------------------------------------------------- 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]