[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jetspeed-user
Subject:    Re: Refresh, update and URL Struts
From:       "Martin Cooper" <martinc () apache ! org>
Date:       2004-01-30 17:02:52
Message-ID: bve2nt$1cp$1 () sea ! gmane ! org
[Download RAW message or body]


"Pramod Jain" <pramod@indent.org> wrote in message
news:EKEDIBHEKMDCJEHOBBOAMEOMCPAA.pramod@indent.org...
> We are running into a problem that people using Struts may have run into.
>
> 1.  We submit from a JSP page and the action required is an insert in the
> database
> 2.  Insert is successful and we get back the pane with all portlets
> displayed.  We have code in our action class that does the redirect and
> provides a new JSP template for display
> 3.  When we refresh the page, the Insert happens again.  Obviously because
> the URL still contains the previous insert request that was submitted so
the
> Insert happens again.
>
> So I understand that I need to change the URL through some type of client
> redirect.  Has anybody run into this problem and found a solution?
>
> How is this done in Struts?

That would be a question for struts-user rather than jetspeed-user...

Before posting there, though, you'll find plenty of information on this in
the struts-user archives, and the following JGuru FAQ might help you as
well:

http://www.jguru.com/faq/view.jsp?EID=779112

--
Martin Cooper


>
> pramod




---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic