Hi all,
I try to pass the control from a Servlet to a JSP-page:
ServletContext sc = this.getServletContext();
RequestDispatcher rd = sc.getRequestDispatcher("/admin/customer.jsp"
;
if (rd!=null) {
// Pass control to the JSP page
try {
rd.forward(req,resp);
} catch (Exception e) {
sc.log("Problem invoking servlet.", e);
}
}
The problem is, that the Adress shown in the BrowserURL is still the same of the Servlet and is not the new URL from my JSP-side to which I passed the control.
Is there anything else possible than using the RequestDispatcher?
Thanxs a lot for all help
I try to pass the control from a Servlet to a JSP-page:
ServletContext sc = this.getServletContext();
RequestDispatcher rd = sc.getRequestDispatcher("/admin/customer.jsp"
if (rd!=null) {
// Pass control to the JSP page
try {
rd.forward(req,resp);
} catch (Exception e) {
sc.log("Problem invoking servlet.", e);
}
}
The problem is, that the Adress shown in the BrowserURL is still the same of the Servlet and is not the new URL from my JSP-side to which I passed the control.
Is there anything else possible than using the RequestDispatcher?
Thanxs a lot for all help