File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Servlet not being called Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet not being called" Watch "Servlet not being called" New topic

Servlet not being called

Trevor Pereira

Joined: Sep 11, 2002
Posts: 12
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())%>
&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="" 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...
Thanks in advance
Trevor Pereira

Joined: Sep 11, 2002
Posts: 12
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!
I agree. Here's the link:
subject: Servlet not being called
It's not a secret anymore!