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
: 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
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
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
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
: 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
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
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/
:[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
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
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
]
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
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
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
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...?
: 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
:[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
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
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
) 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
20 matches
Mail list logo