hi Sam
IS your form associated with both of the Actions.
- Original Message -
From: "Samanth Athrey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 10, 2003 10:41 AM
Subject: Passing Parameters from Action to JSP's
> Hello All,
>
> I have a issue here. Any help w
You should use an ActionForm to store parameters. Your hidden fields can
get the value from the request like this:
<%-- hidden field (mode is one of "create", "edit", or "view") --%>
Of course there are other ways to do it but once you have more than your
two params you won't w
Hi Shyam,
If you change
to
OR
if you just add
does it work?
Susan Bradeen
On 10/13/2003 08:27:41 PM Shyam A wrote:
> Hi,
>
> I have a scenario where I need to pass parameters
> between forms.i.e, I have two forms, Form A and Form B
> with the same attribute "foo". The value of "foo" is
Message-
> From: Edgar P Dollin [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 14, 2003 10:19 AM
> To: 'Shyam A'; [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: RE: Passing parameters between forms
>
>
> My preference is to emulate the session functio
as
well.
I like this better because then you can run junit tests w/o worring about
the container.
Edgar
> -Original Message-
> From: Shyam A [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 14, 2003 8:39 AM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Su
Carey,
Thanks for your mail. I knew about the option you
suggested and mentioned it in my mail.
quote:
I know I can save the "foo" attribute into session in
Action A class and access it in Action B, or set the
scope of Form A to session in struts-config and access
Form A from Action B.
unquote:
I have some vague memory (perhaps completely wrong) that the forms are
stored wherever they are stored using the names that you specify in
struts-config. It may not be the nicest way to do this, but I'm pretty sure
that, given session scope on your forms, you can do something like
(FormA)forma = s
uesday, 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);
- jung
Hunter Hillegas wro
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 t
rameter names into the forward 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 PROTEC
t;));
> -Original Message-
> From: Hunter Hillegas [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 07, 2003 7:32 PM
> To: Struts List
> Subject: Re: Passing Parameters Between Actions
>
> Won't this look for a forward with '?rec_num=map1' in the name of the
>
mes.
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:
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.
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
If you take a quick look through the archives you will see it has been
discussed quite a bit not all that long ago.
-Original Message-
From: David Chelimsky [mailto:[EMAIL PROTECTED]
Sent: Thursday, 5 June 2003 20:59
To: Struts Users Mailing List
Subject: Re: passing parameters or object
Isn't this just action chaining using HTTP instead of within the jvm?
I'm not sure I get the reasons why action chaining is inherently a bad
idea, though I do get that there are potential pitfalls if misused, but
that's true of many patterns. Can you explain? Or point me to an article
that expl
why do you say 'Action chains are bad'.
Is there another solution then.
Meissa
"Andrew Hill" <[EMAIL PROTECTED]>
05/06/2003 13:28
Veuillez répondre à "Struts Users Mailing List"
Pour : "Struts Users Mailing List" <[EMAIL PRO
(Oops. Hit send too soon. Try again!)
You can put them in the request as attributes and use a non-redirecting
forward *but* then you are 'action chaining'.
(Action chains are bad. n'kay)
The other alternative - suitable for string parameters - is to make them
request parameters by appending to t
You can put them in the request as attributes and use a non-redirecting
forward *but* then you are 'action chaining'.
(Action chains are bad. n'kay)
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Thursday, 5 June 2003 19:25
To: [EMAIL PROTECTED]
Subject: passin
(406) 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
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 ex
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 setXXX(
ebruary 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;
>
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 MyExtendedActionMapping extends ActionMapping {
private String xxx;
public void setXXX(Strin
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...?
Thanks
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
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 information? Do I have to parse the XML
or something?
Sorry... I'm a bit new to Struts...
--
S
" <[EMAIL PROTECTED]>
Sent: Tuesday, February 25, 2003 2:40 PM
Subject: RE: Passing parameters to Actions
> Here is a config sample:
>
> parameter="submit"
> type="com.foo.MyAction"
> name="myF
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
(mapp
ts 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 element while specifying the
>
, 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 element while specifying the
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:
The rest is really up to you. Just giving you some ideas.
--
James Mitchell
Software Engineer/Struts Evangelist
> -O
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
Whitefi
n [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, January 09, 2003 3:30 PM
> > To: Struts Users Mailing List
> > Subject: RE: Passing parameters with requestURI of tag
> >
> >
> > See Struts tag. It should make your life easier.
> > Something
> > like th
Correction: need the paramId attribute too:
> -Original Message-
> From: Jerome Jacobsen [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 09, 2003 3:30 PM
> To: Struts Users Mailing List
> Subject: RE: Passing parameters with requestURI of tag
>
>
> See
See Struts tag. It should make your life easier. Something
like this:
However in the rewrite you'll need myField to be a scoped variable (bean).
> -Original Message-
> From: Susan Bradeen [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 09, 2003 3:11 PM
> To: [EMAIL PRO
On Wed, 2002-09-11 at 08:15, Galbreath, Mark wrote:
> Go to www.amazon.com.
>
> Search for "books," "Mastering Jakarta Struts."
>
> Click "checkout."
>
> Purchase book.
>
> Read it, learn it, live it.
thats great. thanks.
--
CraigL->Thx();
Be Developer ID: 5852
signature.asc
Go to www.amazon.com.
Search for "books," "Mastering Jakarta Struts."
Click "checkout."
Purchase book.
Read it, learn it, live it.
Mark
-Original Message-
From: Craig Longman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 11, 2002 6:58 AM
To: struts-user
Subject: passing param
Yes
I just didn't realize it was that simple.
Later, ajTreece
James Mitchell wrote:
> If I'm not way off [again ;)]
>
> Are you wanting to do this?
>
>
>
> JM
>
>
>
>
>>-Original Message-
>>From: ajTreece [mailto:[EMAIL PROTECTED]]
>>Sent: Wednesday, May 01, 2002 4:57 PM
If I'm not way off [again ;)]
Are you wanting to do this?
JM
> -Original Message-
> From: ajTreece [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 01, 2002 4:57 PM
> To: Struts Users Mailing List
> Subject: Passing parameters directly to Action Servlet
>
>
> Is it possible... An
You can use the query string to pass parameters to your Action class:
http://www.whatever.com/myapp/myaction.do?color=red
Then use request.getParameter("color") to retrieve the query parameter in
the Action class. In this case you are still using an Action class not
Action Servlet. Don't confu
You could also return a new ActionForward object
passing the parameters you want.
I don't think it works with mapping.findForward().
--- Leonardo Maciel <[EMAIL PROTECTED]> escreveu: >
use a flag variable in the form
>
> -Original Message-
> From: Bhaskar Gopalan
> [mailto:[EMAIL PROTEC
you could do something like this in your action:
String forwardPath = "/action/Blah?source=" + sourceValue;
return new ActionForward(forwardPath, true); // which sets redirect=true
OR
return new ActionForward(forwardPath); // which is redirect=false
Sincerely,
Shane Witbeck
use a flag variable in the form
-Original Message-
From: Bhaskar Gopalan [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 10:09 AM
To: Struts Group (E-mail)
Subject: Passing parameters
Hi,
I am going to a jsp(A) from two different jsps(B,C). Now, when I click
'save' on A
I want
Alternatively,
I believe that the Action class supports a "parameter" attribute, which you
could possibly use if the Action class doesn't use it itself.
> -Original Message-
> From: Albertsen, Juergen [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 28, 2002 8:27 AM
> To: 'Struts Us
nt: Friday, July 27, 2001 2:34 PM
To: [EMAIL PROTECTED]
Subject: Re: Passing parameters when chaining actions
Hello Fabien,
Friday, July 27, 2001, 8:02:28 PM, you wrote:
FM> I would like to have an action pass parameters
FM> to another actions using a forward action mapping.
FM> The sec
Hello Fabien,
Friday, July 27, 2001, 8:02:28 PM, you wrote:
FM> I would like to have an action pass parameters
FM> to another actions using a forward action mapping.
FM> The second action is configured with a form in
FM> the request scope:
FM> type="Action2Form"/>
FM>
There is an error in your code : try to remove the ending '/' in file
'/template/index.jsp' line
-^-- error
Also, you can have a look to Components/Extended Templates proposal : it provides
more features to deal
with templates / sub-tem
48 matches
Mail list logo