[opencms-dev] RE: 4. RequestDispatcher

Ivan Jelenic ivan.jelenic at nbs.yu
Tue Dec 2 14:25:02 CET 2003


Hi,

Maybe you can try with this scenario:

Do something in your servlet, make a bean and put it in the session. After
that, you can call any JSP page from VFS with Response.sendRedirect(vfsfile)
and access to bean.

Hope it works..
Ivan.

----- Original Message ----- 
From: "Eke, Kemi" <Kemi.Eke at community-fund.org.uk>
To: <opencms-dev at opencms.org>
Sent: Tuesday, December 02, 2003 1:43 PM
Subject: [opencms-dev] RE: 4. RequestDispatcher


> Hi Everyone
>
> I'm having a similar problem to Sarah too, I'd like to get a servlet to
> create a bean and send it to a jsp page within the VFS but I'm not really
> sure how to go about this.  Normally I'd intercept a request and use
> requestDispatcher to send it to a relevant jsp file but not having much
luck
> with this within OpenCMS. Has anyone got any tips on how to get Servlet to
> OpenCMS Jsp servlet communication?
>
> Thanks in advance
>
> Kind Regards
>
> Kemi Eke
> --__--__--
>
> Message: 4
> Date: Tue, 2 Dec 2003 04:04:11 -0500
> From: "Sarah Ceriani" <sceriani at sapient.com>
> To: <opencms-dev at opencms.org>
> Subject: [opencms-dev] RequestDispatcher
> Reply-To: opencms-dev at opencms.org
>
> This is a multi-part message in MIME format.
>
> ------_=_NextPart_001_01C3B8B3.40170900
> Content-Type: text/plain;
> charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
>
> 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 =3D (CmsFlexRequest) pageContext.getRequest();
> l_obj_cmsRes =3D (CmsFlexResponse) pageContext.getResponse();
>
> try{
>     String l_str_target =3D "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.");
> }
>
> Information contained in this email plus any attachment is intended for
> the use of the addressee only and is confidential, proprietary and may
> be privileged. Any dissemination, distribution, copying or use of this
> communication without the prior permission of the sender is prohibited.
> If you are not the intended recipient you must not copy this message or
> attachment or disclose the contents to any other person, but are
> requested to telephone or email the sender and delete the message and
> any attachment from your system. The contents of this message will not
> be in any way binding upon the Community Fund. Opinions, conclusions,
> contractual obligations and other information in this message, in so far
> as they relate to the official business of the Community Fund, must be
> specifically confirmed in writing by the Community Fund.
> ___________________________________________________________________
> This e-mail has been scanned for viruses by MCI's Internet Managed
Scanning Services - powered by MessageLabs. For further information visit
http://www.mci.com
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev





More information about the opencms-dev mailing list