<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>RequestDispatcher</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1264" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I am not sure but I think that forward is not
supported in this version of OpenCMS. Try to search in documentation
module.</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=sceriani@sapient.com href="mailto:sceriani@sapient.com">Sarah
Ceriani</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=opencms-dev@opencms.org
href="mailto:opencms-dev@opencms.org">opencms-dev@opencms.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, December 02, 2003 10:04
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [opencms-dev]
RequestDispatcher</DIV>
<DIV><BR></DIV><!-- Converted from text/rtf format -->
<P><FONT face=Arial size=2>Hi all,</FONT> <BR><FONT face=Arial size=2>does
someone know how to use the RequestDispatcher.forward() method?</FONT>
<BR><FONT face=Arial size=2>I need to redirect to a page in the
context.</FONT> <BR><FONT face=Arial size=2>Here is my code, but it doesn't
work and it throws no exception.</FONT> <BR><FONT face=Arial size=2>Thanks in
advance.</FONT> <BR><FONT face=Arial size=2>sarah</FONT> </P>
<P><FONT face=Arial size=2>l_obj_cmsReq = (CmsFlexRequest)
pageContext.getRequest();</FONT> <BR><FONT face=Arial size=2>l_obj_cmsRes =
(CmsFlexResponse) pageContext.getResponse();</FONT> </P>
<P><FONT face=Arial size=2>try{</FONT> <BR><FONT face=Arial
size=2> String l_str_target = "page1.jsp";</FONT> <BR><FONT
face=Arial size=2>
l_obj_cmsReq.getCmsRequestDispatcher(l_str_target).forward(l_obj_cmsReq,
l_obj_cmsRes);</FONT> <BR><FONT face=Arial size=2>}</FONT> <BR><FONT
face=Arial size=2>catch (Exception p_e) {</FONT> <BR><FONT face=Arial
size=2> throw new JspException("Errore durante il request
dispatcher.");</FONT> <BR><FONT face=Arial size=2>}</FONT>
</P><BR><BR><BR><BR></BLOCKQUOTE></BODY></HTML>