Hi All,
I am stuck with 2 problems Problem 1 In my web-application (developed on struts and hibernate)I have 2 modules User Module http://localhost:8080/SaS/Login.do Admin Module http://localhost:8080/SaS/Login.do Depending on the login credentials the respective GUI are displayed. My problem is that the Action and Form classes that are being used for both the modules are common So depending on the param in the request different result will appear for a call like this http://localhost:8080/SaS/SearchService.do So if I am accessing the admin module in one browser window and user module in another and I copy paste the URL part only "SaS/SearchService.do" to the user module URL the user can view the result which admin is only suppose to view. Is there any way to resolve this? Problem 2 I want to restrict direct access to some of my action classes eg if I have following action classes 1) Login.do 2) RegisterUser.do 3) SearchUser.do 4) Service.do Then only Login.do should be directly accessible i.e http://localhost:8080/SaS/Login.do should work But if someone does http://localhost:8080/SaS/RegisterUser.do this should not work. It should throw "UnAutorized Access" Error Any suggestion? Thanks Prerna The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com