This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Other Application Frameworks and the fly likes Browser Refresh - struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Browser Refresh - struts" Watch "Browser Refresh - struts" New topic

Browser Refresh - struts

raj joe
Ranch Hand

Joined: Mar 17, 2005
Posts: 99
I have two jsp pages.
I forward from jsp page1 to page2 (through a action on click of a link in page1)

Now when i do a refresh on the browser from the page2 ,the page1 form action is submitted.

How do I aviod this?
[ May 06, 2005: Message edited by: raj joe ]
James Carman
Ranch Hand

Joined: Feb 20, 2001
Posts: 580
Rather than forwarding, do a redirect.

James Carman, President<br />Carman Consulting, Inc.
I agree. Here's the link:
subject: Browser Refresh - struts
Similar Threads
request object
How to make a JSP/HTML page to stay on itself when user clicks on back button on the browser?
jsp page redirection
two actionForms for one action class?
Navigation problem in struts