This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet not being called" Watch "Servlet not being called" New topic
Author

Servlet not being called

Trevor Pereira
Greenhorn

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())%>
&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

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!
 
Have you checked out Aspose?
 
subject: Servlet not being called
 
jQuery in Action, 3rd edition