aspose file tools*
The moose likes Struts and the fly likes creating a session count and printing a error message with a hyperlink Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "creating a session count and printing a error message with a hyperlink" Watch "creating a session count and printing a error message with a hyperlink" New topic
Author

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

pooja gopalia
Greenhorn

Joined: Mar 27, 2007
Posts: 1
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

Joined: Jan 17, 2006
Posts: 107
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.


- Christian
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: creating a session count and printing a error message with a hyperlink