• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

SaveToken

 
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Hi List[],

I have login page on submitting the login page and after validating the username and password its open main page.

In main page when i press the back button its still resubmit the values of login page.
But i only want the page should submit once time.

Please help me .

Below is my code
Action Class

 
Ranch Hand
Posts: 689
Scala Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Hi,

You just check session at your login page that session is registered your user value.

If yes ? --> then forward to your location jsp
if not ? --> then not to do any thing..

just like this

<s:if test="#session.user == user">
<jsp:forward page="/pages/homePage.jsp" />
</s:if>


This will automatically redirect to you homePage.jsp if you are login and your session is registered.


 
reply
    Bookmark Topic Watch Topic
  • New Topic