The answer to you problem is simple: there is no problem. If a user
wants to go back and to add another item, let him do it. Maybe he is
doing this intentionally. I hate too-smart webapps that think they
know better what I want to do.

Michael

On 9/23/05, Lim Hock-Chai <[EMAIL PROTECTED]> wrote:
> My app uses order item seq# in the query parm to add/update the shopping 
> cart.  If there is no order item seq#, I simply do add.  However, the problem 
> occur when user uses the browser back button and press submit again, this 
> cause my app to add again.  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 the query parm before forward
>
>
> 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 the form bean property for the sequence
> number to the correct value before you forward to the view.
>
> If it's not a form bean property, you can set it as a request or session
> attribute under a known key.
>
> (Otherwise, what are you doing that requires the sequence number to be a
> request parameter?)
>
> --
> Wendy Smoak
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to