Win a copy of JDBC Workbook this week in the JDBC and Relational Databases forum
or A Day in Code in the A Day in Code forum!
  • 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

.action redirect to .jsp to prevent double submit

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.
Who knew that furniture could be so violent? Put this tiny ad out there to see what happens:
ScroogeXHTML 9.0 - RTF to HTML5 and XHTML converter
    Bookmark Topic Watch Topic
  • New Topic