aspose file tools
The moose likes Struts and the fly likes Struts application Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "Struts application" Watch "Struts application" New topic
Author

Struts application

anitha reddy
Greenhorn

Joined: Mar 22, 2007
Posts: 1
hi,

I am using struts framework. In my application when user continuously enters wrong password that user will be deactivated.

For this when i am first time entered wrong password it gives error message on login.jsp when i try to refresh at this time more than 2 times that user is deactivated. I think same login transaction is excuted with previous wrong password.

I want login.jsp to display when user clicks on refresh button.Please send the results as soon as possible.
RoshaniG Gopal
Ranch Hand

Joined: May 15, 2006
Posts: 180
Hi anitha,

The login information is probably stored in the session ( scope="session"). So i think you should remove that and moroever the user may be directed to the same login page with the eror message dispalyed. Hope it helps


Regards,<br />Roshani
vive shar
Greenhorn

Joined: Sep 27, 2007
Posts: 17
Hello Anitha,

This is the behaviour of browser, if you hit refresh the button of browser exaclty previous action is repeated. Means, your page will be submitted with the same previous values you entered.So, whatever is happening is absolutely correct. So, in place of hitting refresh button put new values for login and click submit button.

Thanks,
Vivek
Brent Sterling
Ranch Hand

Joined: Feb 08, 2006
Posts: 948
What do your forward definitions look like? If your forward that is executed when the login information is incorrect is forwarding to another action you probably want to define it with redirect="true". This does two things 1) clears out values on the request and 2) updates the url that the user sees in the browser (and that will be called when the user clicks the refresh button).

- Brent
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Struts application
 
Similar Threads
Setting session to true and then invalidating
Display URL in browser
deployable name url changed.
Image is not displaying after Submit
Configuring Successful login page in Websphere Security