tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Wallace" <pwall...@intelematics.com.au>
Subject RE: redirect from Servlet
Date Thu, 26 Jun 2003 06:07:00 GMT
Hi, thanks,
   I added the line. No 404 is present, but the servlet maintains, ie
the browser is completely blank. What about the ("/xxx.jsp") path?

Thanks 

Paul.

Try this
getServletConfig().getServletContext().getRequestDispatcher("/xxx.jsp").
forward(request, response);

----- Original Message -----
From: "Paul Wallace" <pwallace@intelematics.com.au>
To: "Tomcat Developers List" <tomcat-dev@jakarta.apache.org>
Sent: Thursday, June 26, 2003 11:21 AM
Subject: redirect from Servlet


> Hello,
>     I have a packaged servlet (com.mypackage.servlets;) in
> WEB-INF\classes\com\mypackage\servlets, where it performs its logic
> dutifully. From the servlet I wish to redirect back to the JSP that
> called it. Currently the JSP origin cannot be found (404). I have
tried
> all manner of variations of path:
>
> res.sendRedirect("addAgent.jsp");
>
> including a fully formed URL (local and HTTP). How do I redirect to
the
> desired file please?
>
> Thanks
>
> Paul.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message