File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

.action redirect to .jsp to prevent double submit

David Burkett

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: 281

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:
subject: .action redirect to .jsp to prevent double submit
It's not a secret anymore!