Re: Change the query parm before forward

2005-09-23 Thread Michael Jouravlev
update. > > using session/request attribute might not work for me. Not sure. I'm new to > web development. > > > > -Original Message- > From: Wendy Smoak [mailto:[EMAIL PROTECTED] > Sent: Friday, September 23, 2005 2:39 PM > To: Struts Users Mailing Lis

RE: Change the query parm before forward

2005-09-23 Thread Barnett, Brian W.
September 23, 2005 1:49 PM To: 'Struts Users Mailing List' Subject: RE: Change the query parm before forward Struts has built in token functionality to prevent the "submit button pressed twice" problem. In action class add(), edit(), and delete() methods, or any method that

RE: Change the query parm before forward

2005-09-23 Thread Barnett, Brian W.
I prefer it to do update. using session/request attribute might not work for me. Not sure. I'm new to web development. -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Friday, September 23, 2005 2:39 PM To: Struts Users Mailing List Subject: Re: Change t

RE: Change the query parm before forward

2005-09-23 Thread Lim Hock-Chai
/request attribute might not work for me. Not sure. I'm new to web development. -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Friday, September 23, 2005 2:39 PM To: Struts Users Mailing List Subject: Re: Change the query parm before forward From: "Lim

Re: Change the query parm before forward

2005-09-23 Thread Wendy Smoak
From: "Lim Hock-Chai" <[EMAIL PROTECTED]> In my struts config file, I've a initialization action. If say the order item sequence# is missing in the query parm, I need to change it to default to the next item sequence # before it forward to the actual form. In your initialization Action, set

Re: Change the query parm before forward

2005-09-23 Thread Michael Jouravlev
Where are you forwarding from and where are you forwarding to? If you are forwarding to JSP from action, just update needed attribute in request scope. Michael On 9/23/05, Lim Hock-Chai <[EMAIL PROTECTED]> wrote: > is there a way to change the query parm in the request before forward it? > > In m

RE: Change the query parm before forward

2005-09-23 Thread Barnett, Brian W.
You could try using a Filter. I'm sure there are many tutorials and examples out there. Here is an example: Web.xml MyFilter com.wss.util.MyFilter Some description. MyFilter