Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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
Don't get me started about those stupid
subject: Forwarding request out side the web application using RequestDispatcher
Request Resource not available JSP
Communication between Two web application Problem.
HttpSession in JSP
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013