[opencms-dev] forward command

Arian Abrahantes Quintana Arian.Abrahantes.Quintana at cern.ch
Wed Jun 29 15:12:07 CEST 2005


Dear bub:
 
I took a look in my own authentication procedure... So I have another choice. Try something like:
 
++++++++++++++++++++++++++++++++++++++
 
String forwardUri = "here/play/with/path/file.jsp";
 
response.sendRedirect(cms.link(forwardUri));
 
++++++++++++++++++++++++++++++++++++++
 
If it works... please don't blame me for being lazy ;-)
 
regards,
 
arian

________________________________

From: opencms-dev-bounces at opencms.org on behalf of bub habub
Sent: Wed 6/29/2005 1:26 PM
To: The OpenCms mailing list
Subject: RE: [opencms-dev] forward command



hi,
tried that, too.
problem, then it shos some sort of xml navigation
menu.

any other ideas. i'm desperate.

thanks anyways

jap

--- Arian Abrahantes Quintana
<Arian.Abrahantes.Quintana at cern.ch> wrote:

> since for HTML pages it works why noy try cheating
> opencms. Rename your jsp file "send_update_note.jsp"
> to "send_update_note.html".
> 
> >From here on I can see any other solution,
> 
> regards
> 
> arian
>
> ________________________________
>
> From: opencms-dev-bounces at opencms.org on behalf of
> bub habub
> Sent: Wed 6/29/2005 11:56 AM
> To: The OpenCms mailing list
> Subject: RE: [opencms-dev] forward command
>
>
>
> hi,
> my files are in the same folder.
> if i put an html file the redirect works. only the
> jsp
> files don't work somehow.
> don't know why. i also tried it with the whole path
> starting from root but doesn't work either.
>
> is there another way to do it?
>
> jap
>
> --- Arian Abrahantes Quintana
> <Arian.Abrahantes.Quintana at cern.ch> wrote:
>
> > Hi bub,
> >
> > R U sure about the path?. I mean,
> > "send_update_note.jsp" is in the same level as the
> > page from where you are sending the redirect
> > command?. In order to get your code working the
> way
> > you write it
> > (response.sendRedirect("send_update_note.jsp");),
> > your configuration should look like this:
> >
> >
>
/system/modules/com.authentication/elements/step1.jsp
> > (from here you "pitch" the redirect order; so
> > embebbed is the redirect line)
> >
>
/system/modules/com.authentication/elements/send_update_note.jsp
> > (redirect "catcher")
> >
> > If your configuration is like the one above I
> don't
> > have the slightest idea of what's happennig.
> > Probably some Opencms guru will give you an
> > explanation I am also a rookie...
> >
> > hope you solve your problem,
> >
> > arian
> >
> >
> > ________________________________
> >
> > From: opencms-dev-bounces at opencms.org on behalf of
> > bub habub
> > Sent: Wed 6/29/2005 9:07 AM
> > To: The OpenCms mailing list
> > Subject: RE: [opencms-dev] forward command
> >
> >
> >
> > hi,
> > i'm using now
> > response.sendRedirect("send_update_note.jsp");
> >
> >  but i get the follwoing error
> >
> >
> > java.lang.NullPointerException
> >
> > Requested resource:
> >
>
/system/modules/com.authentication/elements/send_update_note.jsp
> >
> >
> > i don't know what is wrong since before it showed
> me
> > the error in the send_update_note.jsp.
> > now it says it doesn't find the resource.
> >
> > anyone has an idea.
> >
> > thanks
> > jap
> >
> > --- Arian Abrahantes Quintana
> > <Arian.Abrahantes.Quintana at cern.ch> wrote:
> >
> > > oops sorry two small mistakes the initialization
> > > should be like this
> > >
> > > CmsJspActionElement cms = new
> > > CmsJspActionElement(pageContxt, request,
> > response);
> > >
> > > the rest is the same
> > >
> > > ________________________________
> > >
> > > From: opencms-dev-bounces at opencms.org on behalf
> of
> > > Arian Abrahantes Quintana
> > > Sent: Tue 6/28/2005 3:19 PM
> > > To: The OpenCms mailing list
> > > Subject: RE: [opencms-dev] forward command
> > >
> > >
> > > hi;
> > >
> > > I presume initialized the CmsJspActionElement in
> > > some variable. In teh following way
> > >
> > > CmsJspActionElement = new
> > > CmsJspActionElement(pageContxt, request,
> response)
> > >
> > >  From there you took:
> > >
> > > String lname =
> request.getParameter("nameofuser");
> > >
> > > at the moment you want to redirect to the
> > > next/following page (seems to be is some class
> or
> > > step-by-step procedure) try the line:
> > >
> > >
> >
>
response.sendRedirect("path/of/the/next/page/whateveritsnameis.html?whiceverparameter=youwant");
> > >
> > > This way it works fine for me...
> > >
> > > hope it helps;
> > >
> > > cheers arian
> > >
> > > PS:
> > >
> >
>
http://www.hema.ch/products/web/opencms/package5.0/index.html
> > > is an online generated javadoc documentation
> where
> > > you can find a lot of stuff about opencms
> objects.
> > > you may also make your own javadoc (I mean for
> the
> > > servelet and opencms you have in your
> > configuration)
> > > but I couldn't manage to do it there should
> > somebody
> > > who may explain us..
> > >
> > > >
> > >
> > > _______________________________________________
> > > 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
> >
> >
> >
> >              
> >
> ____________________________________________________
> > Yahoo! Sports
> > Rekindle the Rivalries. Sign up for Fantasy
> Football
> > http://football.fantasysports.yahoo.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
> >
> >
> > >
> >
>
=== message truncated ===>
>
> _______________________________________________
> 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


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 11778 bytes
Desc: not available
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20050629/cd30aa2f/attachment.bin>


More information about the opencms-dev mailing list