• 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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic