cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Hoofe" <kont...@hoofe.de>
Subject How to use map:redirect-to combined with serverpages
Date Thu, 25 Jul 2002 16:46:59 GMT
I tried the following code in the sitemap to redirect to a page after saving values to the

database using art_grp_chg.xsp and receive an sitemap error. 

   <map:match pattern="art_grp_chg.xsp">
    <map:act type="request">
      <map:parameter name="parameters" value="true"/>
      <map:select type="request-parameter">
      <map:parameter name="parameter-name" value="next"/>
         <map:when test="">
         </map:when>
         <map:otherwise>
            <map:generate type="serverpages" src="xdocs/db/art_grp_chg.xsp"/>
            <map:serialize/>
            <map:redirect-to uri="../{next}"/>
         </map:otherwise>
      </map:select>         
    </map:act>    
   </map:match>

I am looking for a simple way to do something similar to the response.sendRedirect(""); I

used in my Cocoon 1.8.2. code. 

Configuration:
Cocoon 2.0.3
Tomcat 4.1.7
Win98

Thanks
Christian

________________________

  Christian Hoofe
  Email  kontakt@hoofe.de
________________________


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message