I would suggest you don't redirect in the Action.
Make the Action return null, and what is in the Act tag will be skipped.
<map:act type="check-auth">
<map:generate type="serverpages" src="hello.xsp"/>
<map:serialize type="html"/>
<!-- after serialize the processing stops, like in "return" in
java -->
</map:act>
<map:generate src="showerror.html"/>
<map:serialize type="html"/>
----- Original Message -----
From: "manish" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 29, 2002 6:19 AM
Subject: How to redirect Using Redirector....?
> Hello,
> I am trying to redirect the user to some url in "act" function, it
> execute the related xsp page, but don't display any thing on browser.
> your help will be highly appriciatable
>
> Thanks and regards,
> Manish Jain
>
> The code is like...
>
> if
> (((String)request.getAttribute("PermissionDenied")).equals("true"))
> {
> request.setAttribute("PermissionDenied","false");
>
>
> redirector.redirect(false,"showerror");
> }
> catch(IOException io)
> {
> System.out.println("can not do rediect"+io);
> }
> return ;
> }
>
--
Nicola Ken Barozzi [EMAIL PROTECTED]
- verba volant, scripta manent -
(discussions get forgotten, just code remains)
---------------------------------------------------------------------
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>