• 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

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

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic