RE: What is the best way to pass a parameter to a forward?

2004-03-16 Thread Menke, John
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

RE: What is the best way to pass a parameter to a forward?

2004-03-16 Thread Jay Glanville
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?

Re: What is the best way to pass a parameter to a forward?

2004-03-16 Thread Martin Cooper
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] > >

RE: What is the best way to pass a parameter to a forward?

2004-03-16 Thread Hubert Rabago
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

SV: What is the best way to pass a parameter to a forward? Create a utility class .Client code

2004-03-16 Thread Tommy Holm - TELMORE
) ; -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

SV: What is the best way to pass a parameter to a forward? Create a utility class

2004-03-16 Thread Tommy Holm - TELMORE
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

RE: What is the best way to pass a parameter to a forward?

2004-03-16 Thread Jay Glanville
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

Re: What is the best way to pass a parameter to a forward?

2004-03-15 Thread Martin Cooper
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

Re: What is the best way to pass a parameter to a forward?

2004-03-15 Thread Joshua Tuberville
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

RE: What is the best way to pass a parameter to a forward?

2004-03-15 Thread Gopalakrishnan, Jayesh
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

What is the best way to pass a parameter to a forward?

2004-03-15 Thread Glanville, Jay
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