Click to See Complete Forum and Search --> : tomcat servlet caching


rock
02-07-2002, 02:02 PM
Having a bit of a problem with JSPs in tomcat. Seems that appending things to a URL to change the parameters going to the servlet isn't working as expected.

I've been able to add parameters and overwrite some, however anything that comes from the original html form via:

<INPUT TYPE=hidden NAME=hiddenkey VALUE=FORM>

can never be changed by adding, for example:

&hiddenkey=LINK

to the end of the URL.

I've obviously abbreviated syntax here, but rest assured that my syntax is okay. The problem seems to be with tomcat caching the http request object, not allowing me to overwrite things.

Anyone with any experience with this? FYI, using Tomcat 3.3a on Solaris 5.8. It doesn't seem to be an issue with my servlet code, as the doPut and doGet methods are very similar.

Thanks!

------------------
The price of freedom is high.

rock
02-08-2002, 09:33 AM
Argh. I finally found it.

The problem was that I was doing a clear() on a protected hashtable in the doPut() but not in the doGet().

Deep down, I knew it shouldn't have been a caching problem....

------------------
The price of freedom is high.