[opencms-dev] RequestDispatcher

Sarah Ceriani sceriani at sapient.com
Tue Dec 2 10:05:00 CET 2003


Hi all,
does someone know how to use the RequestDispatcher.forward() method?
I need to redirect to a page in the context.
Here is my code, but it doesn't work and it throws no exception.
Thanks in advance.
sarah

l_obj_cmsReq = (CmsFlexRequest) pageContext.getRequest();
l_obj_cmsRes = (CmsFlexResponse) pageContext.getResponse();

try{
    String l_str_target = "page1.jsp";
    l_obj_cmsReq.getCmsRequestDispatcher(l_str_target).forward(l_obj_cmsReq, l_obj_cmsRes);
}
catch (Exception p_e) {
   throw new JspException("Errore durante il request dispatcher.");
}





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20031202/af2bae8e/attachment.htm>


More information about the opencms-dev mailing list