Forums Register Login

JSP cannot be refreshed..

+Pie Number of slices to send: Send

I am using Tomcat for JSP & servlet.
Tomcat make a seperate folder by the name of the application where it
stores all the jsp's complied class files.
As the jsp page is complied once & then there after it's class files
are used.
I m using jsp:bean & in that bean I m passing a parameter & thereafter
I get the vector thru which I show up the jsp page.
Problem is that in case of the multiple users accessing the same jsp
page the o/p remains the same ie the result retrieved is on the basis
of the previous parameter .
Is this the problem related to the tomcat server storing the jsp
complied class files(in the 'work' folder of tomcat) or the is this the
problem of the IE cache.
If so how can I forbid IE to store cache.
plz help...
+Pie Number of slices to send: Send
Hi
You are retrieving a Vector from the Beans class, right?
You should declare the Vector varible local in your JSP page.
to store that retrieving vector from the beans class.
Use the following tag:
<% Vector myVect=....
%>
and remove the global decleration. inside <%! %>
OK
Binu
When evil is afoot and you don't have any arms you gotta be hip and do the legwork, but always kick some ... tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 807 times.
Similar Threads
eclipse tomcat integration problem
applet not loading
JSP not refreshing
Applet on website
How to avoid caching of JSP pages ?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 12:09:12.