A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Murach's Java Servlets and JSP
this week in the
Forwarding request out side the web application using RequestDispatcher
Joined: Dec 12, 2006
Feb 27, 2007 23:58:00
can i forward request outside my application using
??? If Yes How ?
here it will take ralative path...that is somewhere from my .war file.
RequestDispatcher view = req.getRequestDispatcher("result.jsp");
And in this case it will start from the room of my web application...
RequestDispatcher view = req.getRequestDispatcher("/result.jsp");
than how can i forward a request outside my web application like..
Joined: Dec 11, 2004
Feb 28, 2007 04:23:00
You can't, if you want to send the user to a resource outside of your app server, use response.sendRedirect.
How to ask a question...
Simple Servlet Examples
It is sorta covered in the
JavaRanch Style Guide
subject: Forwarding request out side the web application using RequestDispatcher
Communication between Two web application Problem.
Request Resource not available JSP
HttpSession in JSP
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014