• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JSP cannot be refreshed..

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic