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
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.
subject: creating a session count and printing a error message with a hyperlink