Configuration:
JSDK 2.0, using servletrunner with VisualCafe 3.0c
JDK1.2.2-001
IE 4.01 SP2
We are working on a Distance Learning project that has servlets tracking
progress through content html pages. I would like to know if there is a way
to keep the html page loaded in the browser when the servlet is invoked to
track status. In other words I'd like to invoke the servlet, and behind the
scenes update the database, but not write anything out to an html page.
At the bottom of the servlet, if I don't redirect anywhere I end up with a
blank page with the name of the servlet location field of the in the
browser.
I have also tried redirecting back to the html page that invoked the
servlet, but also end up with a blank page with the name of the servlet in
the location field of the browser.
Here is what I tried:
[snip]
StringBuffer requestURL = HttpUtils.getRequestURL(req);
System.out.println("requestURL = " + requestURL);
What gets printed to the console is the name of the servlet, not the
requesting html page:
requestURL =
http://127.0.0.1:8080/servlet/generaldynamics.learnMap.useraccess.UpdateAuSt
atusServlet
I have tried several things before posting this, and am not sure if this is
possible. Any help would be greatly appreciated.
Joe Padula
General Dynamics Communication Systems
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html