[opencms-dev] forward command

Arian Abrahantes Quintana Arian.Abrahantes.Quintana at cern.ch
Tue Jun 28 15:19:26 CEST 2005


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..

________________________________

From: opencms-dev-bounces at opencms.org on behalf of bub habub
Sent: Tue 6/28/2005 1:49 PM
To: open cms
Subject: [opencms-dev] forward command



hi all,

m sorry for asing such an easy question but somehow i
didn't get it today. searching already for hours.

i just want to forward a request to another page. the
second page should then be able to get the variables
from the first page via request.getParameter but
somehow cannot get variable.

here the code
part of the first page:

CmsUUID userid = temp.getUserLastModified();
                CmsUser projectleader = cmsobject.readUser(userid);
                //out.println(userid);
                String emailofuser = projectleader.getEmail();
                out.println(emailofuser);
                String url = temp.getRootPath();
                String filename = temp.getName();
                //out.println(url);
                out.println(filename);                          //muss noch genauer
aufgebaut werden
                //cmsobject.forward("send_update_reminder.jsp");
                %>
                <jsp:forward page="send_update_reminder.jsp" /> //
this is just an idea
                <%     

another idea was to use sth like cms.forward() but i
couldn't find a method like this.


part of second page

String email = request.getParameter("emailofuser");
String lname = request.getParameter("nameofuser");

any help. how can i just forward a request to another
page.

sorry again to spam the mailing list for such a small
issue

thank you

jap


               
____________________________________________________
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: 7550 bytes
Desc: not available
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20050628/8a9748a5/attachment.bin>


More information about the opencms-dev mailing list