[opencms-dev] forward command

Borja Marcos Suarez borja.suarez at fundacionctic.org
Wed Jun 29 15:20:55 CEST 2005


I'm not sure but you should use the whole path, I mean:
 
CmsJspActionElement cms= new CmsJpsActionElement (pageContext,request,response);
response.sendRedirect (cms.link ("/system/modules/...../send_update_note.jsp"));
 
This is working for me.
 
Hope this helps,
 
Regards,
 
Borja Marcos
 

________________________________

De: opencms-dev-bounces at opencms.org en nombre de Arian Abrahantes Quintana
Enviado el: miƩ 29/06/2005 11:37
Para: The OpenCms mailing list
Asunto: RE: [opencms-dev] forward command


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


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


More information about the opencms-dev mailing list