> From: Christian Hoofe [mailto:[EMAIL PROTECTED]]
>
> 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.
You actually want to write not XSP page but action.
> <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/>
These two lines mean: "SEND PAGE TO CLIENT"
> <map:redirect-to uri="../{next}"/>
This line means: "DON'T SEND PAGE TO CLIENT, SEND HIM TO ANOTHER URL".
These are *not* compatible with each other. Choose one of them.
Vadim
> </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 [EMAIL PROTECTED]
> ________________________
---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>