• 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

Servlet not being called

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
When I open up a new browser window all of my links that call my servlets work. However, if the user clicks on the first link and come back, then the second one and come back, and finally the 3rd one. Everything is groovy. BUT, if you go try say the first link again, it will not call Servlet.
<a href="GetDetailTranServlet?TAmt=<%=nf.format(theList.getTranAmount())%>
&CompTAmt=<%=theList.getTranAmount()%>
&billid=<%= theList.getTranID() %>
&merch=<%= theList.getMerchantName() %>
&tdate=<%= theList.getTranDate() %>" target="_top">Reconcile</a></td>
This jsp has the following session variables coming in:
<jsp:useBean id="TransInfoList" class="com.sun.java.util.collections.ArrayList" scope="session" />
<jsp:useBean id="resmess" class="java.lang.String" scope="session" />
<jsp:useBean id="FirstName" class="java.lang.String" scope="session" />
<jsp:useBean id="LastName" class="java.lang.String" scope="session" />
<jsp:useBean id="MidInit" class="java.lang.String" scope="session" />
<jsp:useBean id="SelectedDate" class="java.lang.String" scope="session" />
<jsp:useBean id="notRecFlag" class="java.lang.String" scope="session" />
<jsp:useBean id="recFlag" class="java.lang.String" scope="session" />
The jsp is running...but the servlet is not being called again...
\
Suggestions?
Thanks in advance
 
Trevor Pereira
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
Figured it out...took me a couple of days, but I got there.
For future reference for anyone else.
It was a caching issue.
In IE Tools>Internet Options...under "Temporary Interent Files > Settings select Radio Button "Every time visit to page".
Most frustrating thing if you think it is Java coding related, but it is a Software config issue!
Guess that is why we get the big bucks!
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic