Strange problem with forms not working in authenticated directory
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Developer_Developer
Posted On:   Monday, May 3, 2004 01:03 PM

Currently I have an application. The main directory under the webapps/myapp all those files I don't need protected. I need certain pages (admin stuff) protected. So I put that into a /webapps/myapp/admin directory with basic authentication. My problem comes with forms. If I create a form in the webapps/myapp directory and hit submit, it takes user to a confirmation page of what they entered. They hit the back button and the form will still contain the data they just entered. however, if I create a form in webapps/myapp/admin directory, when user hits back button,none of the data is saved. I have tried this with very basic form as below. test2.jsp just says "TESTING".    More>>

Currently I have an application. The main directory under the webapps/myapp all those files I don't need protected. I need certain pages (admin stuff) protected. So I put that into a /webapps/myapp/admin directory with basic authentication.


My problem comes with forms. If I create a form in the webapps/myapp directory and hit submit, it takes user to a confirmation page of what they entered. They hit the back button and the form will still contain the data they just entered. however, if I create a form in webapps/myapp/admin directory, when user hits back button,none of the data is saved. I have tried this with very basic form as below. test2.jsp just says "TESTING".


			







I thought that form saving data was automatic. The only difference is which directory I put the form in. It seems that it's not reading something properly. The only difference is that the admin dir I have it set so only certain users can enter but other than that nothing.

I tried this in another created directory without any authentication and it worked (saved data after hitting back button). I am using Tomcat 5.0

   <<Less
About | Sitemap | Contact