user something like:

<jsp:forward page="<%= request.getHeader("referer") %>"/>
This will use the ServletContext.RequestDispatcher object so that the current
request is passed to the previous page.

or use
response.sendRedirect(request.getHeader("referer"));
This will send an HTTP 303 (I think) back to the client which will make another
request to the previous page - ie this will result in new request and response
objects.

I forgot the tag that is used.
Anyway, if you are using load balancing you may want to parse the url as necessary.

Jim Snyder wrote:

> Hello Everyone....
>
> I'm using the solution here
> (http://www.onjava.com/pub/a/onjava/2001/04/05/upload.html) to do my
> file uploading from client to server. Basically it states for the form
> containing the "file" component, the action should be to send it to
> FileUpload.jsp which does the following:
>
> <jsp:useBean id="myid" scope="session" class="my.path.to.class.Class" />
>
> <%
> myid.uploadClientFile(request);
> %>
>
> When the uploadClientFile method completes I need to automattically go
> back to the previous jsp page. In short this is for a wizard. So really
> going "back to the previous jsp page" is really refreshing the orginal
> jsp page who had a form on it go to FileUpload.jsp.
>
> --
> Jim Snyder
> [EMAIL PROTECTED]
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

--
Erik I Morton
Software Developer
------------------
CommerceHub
http://www.commercehub.com
518-886-0704
21 Corporate Drive
Clifton Park, NY 12065

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to