File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet not being called

 
Trevor Pereira
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic