I believe it is not possible to forward a request from one web application to another, but only use
SCJP 1.6,Preparing (Tryin to prepare) for scwcd
posted 3 years ago
we have to use relative path i.e "/contextpath" when using other application context path name inside getContext method as per the specification.
so change will be like ServletContext ctx2=ctx1.getContext("/Best"); and to enable this feature little change needed in server.xml
we need to add this attribute crossContext="true" in project's context element in server.xml.