Javatpoint Logo

Struts2 action class not working

By: jagann*** On: Fri Jun 12 17:34:14 IST 2015     Question Reputation0 Answer Reputation0 Quiz Belt Series Points0  0Blank User
Hi I am using Struts2. (case1)I have form with userName and password fields and login button.I am validating if both field are blank.It is working fine. (case2)Now I am sending userName and password from url(query string) not filling form like this:
http://localhost:8080/CopyBrowser/loginAction.action?userName=jagannath&password=123
and pressing enter button from keyboard. Then also it is working.

User should not logged in using (case2). What should I do to avoid (case2) in struts2.
Up0Down
struts  x  58Tags