Re: Passing Parameters Between Actions

2003-07-15 Thread Jung Yang
Is there any reason you are forwarding from JSP? Try using Dispatcher in Action1 class like request.getRequestDispatcher(/Action2.do).forward(request, response); - jung Hunter Hillegas wrote: I am trying to pass a parameter between two actions and running into trouble. I call action 1 like

RE: Passing Parameters Between Actions

2003-07-15 Thread Andrew Hill
: Jung Yang [mailto:[EMAIL PROTECTED] Sent: Tuesday, 15 July 2003 22:31 To: [EMAIL PROTECTED] Subject: Re: Passing Parameters Between Actions Is there any reason you are forwarding from JSP? Try using Dispatcher in Action1 class like request.getRequestDispatcher(/Action2.do).forward(request, response

RE: Passing Parameters Between Actions

2003-07-08 Thread Mathew, Manoj
names. Hunter From: Mathew, Manoj [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] Date: Mon, 7 Jul 2003 15:49:59 -0500 To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: Passing Parameters Between Actions or u can use in action1: actionForward

RE: Passing Parameters Between Actions

2003-07-07 Thread Mathew, Manoj
path=/Action2.do?rec_num=map1 / request.getParameter(rec_num); can use logic:equal if you are forwarding to a JSP -Original Message- From: Hunter Hillegas [mailto:[EMAIL PROTECTED] Sent: Monday, July 07, 2003 3:03 PM To: Struts List Subject: Passing Parameters Between Actions I am

RE: Passing Parameters Between Actions

2003-07-07 Thread Mathew, Manoj
or u can use in action1: actionForward = mapping.findForward(FOR_WARD) + ?rec_num=map1; -Original Message- From: Mathew, Manoj Sent: Monday, July 07, 2003 3:34 PM To: Struts Users Mailing List Subject: RE: Passing Parameters Between Actions path=/Action2.do?rec_num=map1

Re: Passing Parameters Between Actions

2003-07-07 Thread Hunter Hillegas
: Mathew, Manoj [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] Date: Mon, 7 Jul 2003 15:49:59 -0500 To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: Passing Parameters Between Actions or u can use in action1: actionForward = mapping.findForward(FOR_WARD

RE: Passing parameters to Actions

2003-02-25 Thread Brandon Goodin
parameter is only used for dispatch actions. If you want to set properties for an action... you can extend the ActionMapping class and use the set-property in an action element while specifying the className attribute of the action element. Brandon Goodin Phase Web and Multimedia PO Box 85

RE: Passing parameters to Actions

2003-02-25 Thread James Mitchell
Have looked at extending ActionConfig? You could add a field for assigning roles. If you wanted to allow more than one, it would let you do: action path=/app/main type=com.symbol.mobilecommerce.analysis.actions.app.Main name=app.main forward name=PAGE_SRC path=/app/main.jsp/

RE: Passing parameters to Actions

2003-02-25 Thread Brandon Goodin
:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 12:33 PM To: Struts Users Mailing List Subject: RE: Passing parameters to Actions parameter is only used for dispatch actions. If you want to set properties for an action... you can extend the ActionMapping class and use the set-property in an action

RE: Passing parameters to Actions

2003-02-25 Thread Derek Richardson
parameter. Brandon's solution to subclass ActionMapping is probably the best (only reasonable?) alternative. Derek Richardson -Original Message- From: Brandon Goodin [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 2:33 PM To: Struts Users Mailing List Subject: RE: Passing

RE: Passing parameters to Actions

2003-02-25 Thread Jarnot Voytek Contr AU HQ/SC
It may be easier for you to extend RequestProcessor and override processRoles(...) and perform your own authorization there. I started down that road, but didn't like the effect of return false from processRoles, so we always return true and do the real role checking in our base action class

Re: Passing parameters to Actions

2003-02-25 Thread Sloan Seaman
] Sent: Tuesday, February 25, 2003 2:40 PM Subject: RE: Passing parameters to Actions Here is a config sample: action path=/myAction.do parameter=submit type=com.foo.MyAction name=myForm scope=request className=com.foo.MyExtendedActionMapping set-property property

RE: Passing parameters to Actions

2003-02-25 Thread Brandon Goodin
Message- From: Sloan Seaman [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 12:56 PM To: Struts Users Mailing List Subject: Re: Passing parameters to Actions Ok. sounds like a plan. Question though: How do I access the set-property information? Do I have to parse the XML or something

Re: Passing parameters to Actions

2003-02-25 Thread Sloan Seaman
Very cool. Thanks!!! -- Sloan - Original Message - From: Brandon Goodin [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 3:06 PM Subject: RE: Passing parameters to Actions It is done automagically upon startup of your application

RE: Passing parameters to Actions

2003-02-25 Thread Guido
I wonder if MyExtendedActionMapping is as simple as: public class MyExtendedActionMapping extends ActionMapping { private String xxx; public void setXXX(String xxx) { this.xxx = xxx; } public String getXXX() { return xxx; } } Should I implement any other method...?

RE: Passing parameters to Actions

2003-02-25 Thread Brandon Goodin
: Tuesday, February 25, 2003 1:32 PM To: Struts Users Mailing List Subject: RE: Passing parameters to Actions I wonder if MyExtendedActionMapping is as simple as: public class MyExtendedActionMapping extends ActionMapping { private String xxx; public void setXXX(String xxx

RE: Passing parameters to Actions

2003-02-25 Thread James Mitchell
:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 3:32 PM To: Struts Users Mailing List Subject: RE: Passing parameters to Actions I wonder if MyExtendedActionMapping is as simple as: public class MyExtendedActionMapping extends ActionMapping { private String xxx; public void

Re: Passing parameters to Actions

2003-02-25 Thread Geeta Ramani
Well, I'm sure it's a typo, but make sure the methods are called setXxx(String) and getXxx()..! :) Geeta Guido wrote: I wonder if MyExtendedActionMapping is as simple as: public class MyExtendedActionMapping extends ActionMapping { private String xxx; public void

RE: Passing parameters to Actions

2003-02-25 Thread Brandon Goodin
Mailing List Subject: Re: Passing parameters to Actions Well, I'm sure it's a typo, but make sure the methods are called setXxx(String) and getXxx()..! :) Geeta Guido wrote: I wonder if MyExtendedActionMapping is as simple as: public class MyExtendedActionMapping extends ActionMapping

RE: Passing parameters to Actions

2003-02-25 Thread Andrew Shirk
) 862-0354 [EMAIL PROTECTED] http://www.phase.ws -Original Message- From: Guido [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 1:32 PM To: Struts Users Mailing List Subject: RE: Passing parameters to Actions I wonder if MyExtendedActionMapping is as simple as: public class