cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <reachsu...@hotmail.com>
Subject Re: redirection in an XSP
Date Sun, 06 Jan 2002 14:35:05 GMT
hi,
one way  of redirecting is
first  within  xsp logic  tags get the  dynamic value aand with a if loop try this  out
javax.servlet.RequestDispatcher turn=
((org.apache.cocoon.environment.http.HttpRequest)request).getRequestDispatch
er("hello.xml");
turn.forward(((org.apache.cocoon.environment.http.HttpRequest)request).getHttpServletRequest(),((org.apache.cocoon.environment.http.HttpResponse)response).getHttpServletResponse());

regards
sumit
  ----- Original Message ----- 
  From: m-rao 
  To: cocoon-users@xml.apache.org 
  Sent: Sunday, January 06, 2002 11:17 AM
  Subject: redirection in an XSP


  Hi,

  Is there a way I can redirect another xsp (or url) from a xsp?

  Say, based on the value that is retrieved in a dynamic xsp, I no longer wish to output the
page to the user but redirect to some other xsp.

  Thanks,

  Raju



Mime
View raw message