<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.6944.0">
<TITLE>RequestDispatcher</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Arial">Hi all,</FONT>
<BR><FONT SIZE=2 FACE="Arial">does someone know how to use the RequestDispatcher.forward() method?</FONT>
<BR><FONT SIZE=2 FACE="Arial">I need to redirect to a page in the context.</FONT>
<BR><FONT SIZE=2 FACE="Arial">Here is my code, but it doesn't work and it throws no exception.</FONT>
<BR><FONT SIZE=2 FACE="Arial">Thanks in advance.</FONT>
<BR><FONT SIZE=2 FACE="Arial">sarah</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">l_obj_cmsReq = (CmsFlexRequest) pageContext.getRequest();</FONT>
<BR><FONT SIZE=2 FACE="Arial">l_obj_cmsRes = (CmsFlexResponse) pageContext.getResponse();</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">try{</FONT>
<BR><FONT SIZE=2 FACE="Arial"> String l_str_target = "page1.jsp";</FONT>
<BR><FONT SIZE=2 FACE="Arial"> l_obj_cmsReq.getCmsRequestDispatcher(l_str_target).forward(l_obj_cmsReq, l_obj_cmsRes);</FONT>
<BR><FONT SIZE=2 FACE="Arial">}</FONT>
<BR><FONT SIZE=2 FACE="Arial">catch (Exception p_e) {</FONT>
<BR><FONT SIZE=2 FACE="Arial"> throw new JspException("Errore durante il request dispatcher.");</FONT>
<BR><FONT SIZE=2 FACE="Arial">}</FONT>
</P>
<BR>
<BR>
<BR>
<BR>
</BODY>
</HTML>