wood burning stoves*
The moose likes Struts and the fly likes .action redirect to .jsp to prevent double submit Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark ".action redirect to .jsp to prevent double submit" Watch ".action redirect to .jsp to prevent double submit" New topic
Author

.action redirect to .jsp to prevent double submit

David Burkett
Greenhorn

Joined: Apr 20, 2011
Posts: 1
I'm using struts 2 on tomcat 6, and I have a login page that redirects using struts. The problem is that when it redirects, it redirects to login.action. I would like the url to display welcome.jsp instead of login.action. Is there a way to do this without javascript or scriptlets?
Robin John
Ranch Hand

Joined: Sep 10, 2008
Posts: 270

Hi David.. welcome to the forum....

is that the actual requirement ?. Well, lots of application just dont want the url to show that ".jsp" infact there is a feature to hide the ".action" too.. . But, in your case its otherwise.... I would suggest you to look at your design and code logic again... because showing .jsp just to prevent the double submit is not a good idea.. may be you have a different problem....

paste some code if you need help with that... Thanks.


Time is what we want the most, but what we use the worst. -- William Penn
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: .action redirect to .jsp to prevent double submit
 
Similar Threads
Hidden text field values appear in the url/address bar
URL - getting appended
The requested resource () is not available
Recommendations for Webhosting for Struts2 (GoDaddy issue)
Jsp is not displaying in Struts2