jsp - RequestDispatcher to url in a different web app -
how can use requestdispatcher
outher web app in same work space
in 1st web app use
requestdispatcher rd =request.getrequestdispatcher("vote.jsp"); rd.forward(request, response);
can replace vote.jsp
this url :
http://localhost:8080/speedyserviceclient/jsp/search/indexs.jsp
if want forward different web app in same tomcat instance, can:
- in
meta-inf/context.xml
set<context crosscontext="true" />
getservletcontext().getcontext("/app").getrequestdispatcher("f.jsp").forward(..);
,app
name of other application.
Comments
Post a Comment