12 PM
To: 'Struts Users Mailing List'
Subject: RE: What is the best way to pass a parameter to a forward?
Latest stable release: 1.1
--
Jay Glanville
> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Martin Cooper
> Sent: Tuesday, March 16, 2
Latest stable release: 1.1
--
Jay Glanville
> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Martin Cooper
> Sent: Tuesday, March 16, 2004 1:33 PM
> To: [EMAIL PROTECTED]
> Subject: Re: What is the best way to pass a parameter to a forward?
tionForward class doesn't
> have a copy constructor
>
> --
> Jay Glanville
>
>
> > -Original Message-
> > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Martin Cooper
> > Sent: Monday, March 15, 2004 8:30 PM
> > To: [EMAIL PROTECTED]
> >
I wrote an extension to help me do this. I use this in all my projects.
http://www.rabago.net/struts/redirect
hth,
Hubert
--- Jay Glanville <[EMAIL PROTECTED]> wrote:>
> I'm trying to solve a problem, but I'm not sure my solution
> is the best
> way. Basically, I want to set a parameter on a f
)
;
-Oprindelig meddelelse-
Fra: Tommy Holm - TELMORE
Sendt: 16. marts 2004 13:48
Til: Struts Users Mailing List
Emne: SV: What is the best way to pass a parameter to a forward? Create
a utility class
Some time ago this question has been asked before and someone showed
some utility class c
idn't come up with the idea of this class, I simply
created the class after reading the information that a fellow programmer
Provided.!
-Oprindelig meddelelse-
Fra: Jay Glanville [mailto:[EMAIL PROTECTED]
Sendt: 16. marts 2004 13:13
Til: 'Struts Users Mailing List'
Emne
Glanville
> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Martin Cooper
> Sent: Monday, March 15, 2004 8:30 PM
> To: [EMAIL PROTECTED]
> Subject: Re: What is the best way to pass a parameter to a forward?
>
>
> What you are doing will no
What you are doing will not work - at least, not the way you are doing it.
You are trying to modify the ActionForward instance that is owned by Struts,
and calling setPath() on that instance will result in an
IllegalStateException.
You need to create your own ActionForward instance, instead of try
Jay,
Since Struts does not differentiate between a POST and a GET, passing
data as query parameters is the same as form data. You could create a
form that has only the one field "id" which would be populated if you
called a URL of "/someAction?id=foo". This is what I use when I create
dynamic li
anville, Jay [mailto:[EMAIL PROTECTED]
Sent: Monday, March 15, 2004 4:47 PM
To: Struts User List
Subject: What is the best way to pass a parameter to a forward?
I'm trying to solve a problem, but I'm not sure my solution is the best
way. Basically, I want to set a parameter on a forward wit
I'm trying to solve a problem, but I'm not sure my solution is the best
way. Basically, I want to set a parameter on a forward within the
action's execute.
I'm in my action's execute method. I've just successfully performed
some work, and I now want to forward/redirect to the next page. So,
I'v
11 matches
Mail list logo