Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP cannot be refreshed..

 
shailja mishra
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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...
 
Sarath Mohan
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic