struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alvarado, Juan (c)" <Juan.Alvar...@NielsenMedia.com>
Subject RE: LookupDispatchAction
Date Tue, 14 Jan 2003 21:03:24 GMT
using your example you'd want to check your request parameter (Make sure you
use the same name as in struts-config.xml for that action) and make sure the
value is either add or delete. This insures your methods get called.

This has come in handy for me whenever I want to display a link to a user to
let them pull up a record they want to edit and at the same time re-use a
related action.

-----Original Message-----
From: Pat Quinn [mailto:pat_quinn2009@hotmail.com]
Sent: Tuesday, January 14, 2003 3:49 PM
To: struts-user@jakarta.apache.org
Subject: RE: LookupDispatchAction


So i guess all i need do is check the request object for my parameter as set

in the URL of the href???

protected Map getKeyMethodMap(ActionMapping mapping,
    ActionForm form,
    HttpServletRequest request) {


  Map map = new HashMap();
  map.put("button.add", "add");
  map.put("button.delete", "delete");
  return map;
}








>From: "Alvarado, Juan (c)" <Juan.Alvarado@NielsenMedia.com>
>Reply-To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
>To: "'Struts Users Mailing List'" <struts-user@jakarta.apache.org>
>Subject: RE: LookupDispatchAction
>Date: Tue, 14 Jan 2003 15:42:58 -0500
>
>Yes I've done it that way many times and it works.
>
>-----Original Message-----
>From: Pat Quinn [mailto:pat_quinn2009@hotmail.com]
>Sent: Tuesday, January 14, 2003 3:42 PM
>To: struts-user@jakarta.apache.org
>Subject: LookupDispatchAction
>
>
>Hi Guys,
>
>Can i submit a page using a html HREF (i.e. myLookupAction.do?offset=10)
>when using a LookupDispatchAction. Up until now i submitted the page using
>the following format:
>
><html:submit property="action"><bean:message
>key='label.update'/></html:submit>
>
>Cheers
>
>Pat
>
>
>
>
>_________________________________________________________________
>STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
>http://join.msn.com/?page=features/junkmail
>
>
>--
>To unsubscribe, e-mail:
><mailto:struts-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail:
><mailto:struts-user-help@jakarta.apache.org>
>
>
>
>
>--
>To unsubscribe, e-mail:   
><mailto:struts-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail: 
><mailto:struts-user-help@jakarta.apache.org>


_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 
http://join.msn.com/?page=features/junkmail


--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>




--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message