Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

.action redirect to .jsp to prevent double submit

 
David Burkett
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 281
Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic