[opencms-dev] RequestDispatcher

Ivan Jelenic ivan.jelenic at nbs.yu
Tue Dec 2 13:16:01 CET 2003


RequestDispatcherHi,

I am not sure but I think that forward is not supported in this version of OpenCMS. Try to search in documentation module.
  ----- Original Message ----- 
  From: Sarah Ceriani 
  To: opencms-dev at opencms.org 
  Sent: Tuesday, December 02, 2003 10:04 AM
  Subject: [opencms-dev] RequestDispatcher


  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/ce2415fb/attachment.htm>


More information about the opencms-dev mailing list