• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

.action redirect to .jsp to prevent double submit

 
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?
 
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.
 
I suggest huckleberry pie. But the only thing on the gluten free menu is this tiny ad:
create, convert, edit or print DOC and DOCX in Java
https://products.aspose.com/words/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!