We are using Struts2-spring and Hibernate in our application. We are facing some strange problem. When we use network proxy in browsers and access the application, it inserts every record twice. However if we use browsers with “NO PROXY” settings, it works fine. Can anybody help me out?
Thanks in advance.
We are using Struts2-spring and Hibernate in our application. We are facing some strange
Share
Check the request type. If there is a proxy, the browser might send more HEAD requests to see if the document has really changed. If you changed the request handling code on the server, you may handle these requests like GET.
Example: In Java Servlets, you can override
doGet()orservice(). The former gets invoked only forGETrequests, the latter gets invoked for any type of request (GET,POST,HEAD,DELETE).