Rajesh Duggal wrote:
So for every action that access my crappy resource I need to put an "error"
and a "slow" view in my actions.xml?
Do I need to do the same for private pages where I want to redirect to the
login page if they try to access it directly by URL in the browser.
So does every "registered user only" page that accesses my crappy resource
need to look like this..??
<action name="CreateProfileAction" alias="createprofile">
<view name="guest">redirect.action?url=login!default.action</view>
<view name="success">redirect.action?url=welcome!default.action</view>
<view name="input">/templates/createprofileform.vm</view>
<view name="error">/templates/createprofileform.vm</view>
<view name="resourceerror">/templates/resourcebroken.vm</view>
<view name="resourceslow">/templates/resourcetooslow.vm</view>
</action>
What about webwork.action.ResultException it's javadoc talks about writing a
checkLogin() method.
Please direct me to some clear docs or where I can find good examples of how
this is supposed to be done.
Heeeelllp!! :)
Rajesh.
From: "Jason Carreira" <[EMAIL PROTECTED]>
Yes, you return ERROR. In actions.xml you can do this:
<action name=3D"my.ActionImpl" alias=3D"myAction" >
<view name=3D"error">resourcebroken.vm</view>
<view name=3D"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
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?
-------------------------------------------------------
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
-- to your success! ___________________________ andrew lombardi president mystic coders ___________________________ http://www.mysticcoders.com 949 . 515 . 8840 x 6
========================================================================= This message is for the named person's use only. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. ========================================================================= ------------------------------------------------------- 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