This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

creating a session count and printing a error message with a hyperlink

 
pooja gopalia
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
i have req as
"After 5 consecutive unsuccessful login attempts within the same user session or connection to the web server, the screen will display a error message and a hyperlink to reconnect to application X along with the following error message:

THIS PAGE HAS EXPIRED DUE TO UNSUCCESSFUL LOGIN ATTEMPTS, TO CONTINUE CLICK;
https://X.abc.com
"



for this i have LoginAction.java which contains valid and invalid username and paassword error messages.
also for login attempts i hav to take the session count. so my QUES is
wat code should i write for retieving session count and where this error message should be placed in LoginAction.java or Login.jsp? and how
 
Christian Nash
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
there is html:error struts tag for this purpose. Please refer to this struts tag. you will have a name value pair of error messages in a resource bundle (typically a properties file). whenever any error occurs you can handle it through either action form validate method or separately through the action class. hope this will provide enough food for thought.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic