Yes, you return ERROR. In actions.xml you can do this:

<action name="my.ActionImpl" alias="myAction" >
    <view name="error">resourcebroken.vm</view>
    <view name="slow">resourcetooslow.vm</view>
</action>

Then, if you return ERROR, you'd get the resourcebroken.vm page, if you
return "slow", you'd get resourcetooslow.vm.

Jason

> -----Original Message-----
> From: Rajesh Duggal [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, February 13, 2003 3:46 PM
> To: [EMAIL PROTECTED]
> Subject: [OS-webwork] How do I redirect to error pages?
> 
> 
> 
> I'm using WW 1.2.1
> How can I redirect the user to resourcebroken.vm and 
> resourcetooslow.vm pages if my datasources throw 
> ResourceBroken and ResourceTooSlow exceptions?
> 
> I catch the exception in my ww action and then what? Do I 
> return an ERROR from my doExecute method? What do I put in my 
> actions.xml?
> 
> Thanks,
> Rajesh.
> 
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.NET email is sponsored by: FREE  SSL Guide from 
> Thawte are you planning your Web Server Security? Click here 
> to get a FREE Thawte SSL guide and find the answers to all 
> your  SSL security issues. 
> http://ads.sourceforge.net/cgi-> bin/redirect.pl?thaw0026en
> 
> 
> _______________________________________________
> Opensymphony-webwork mailing list 
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> 


-------------------------------------------------------
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to