Thanks Nicolas,
 
finally i could get the cancel button working the way i want.
 
regards
Manisha

Nicolas De Loof <[EMAIL PROTECTED]> wrote:



Manisha Sathe a écrit :

>Hi Nicolas,
> 
>Thanks for the response,
> 
>1)I tried this, but giving me error. Pls would u mind giving some code example 
>?
> 
>
use in your JSP (do not set property !)

use isCanceled(request) in action. Is cancel was used to post the form, 
it will return true.

>2)About exception - do u mean to say my own method common to all ? This also 
>if u can explain with code example would be of great help. 
> 
>
I set a global ExceptionHandler in struts config to catch all 
exceptions. It logs them for debug and forwards to an error page.

>Thanks once again,
> 
>regards
>Manisha
>
>
>Nicolas De Loof wrote:
>
>You can check for cancel in actions using
>isCanceled(request)
>
>Struts cancel tag uses a magic value that this method will detect 
>(formbean validation is also skipped)
>
>About exception, I used to set a global exception handler that logs 
>exception stack and forwards to a generic error page.
>
>Nico.
>
>Manisha Sathe a écrit :
>
> 
>
>>I had posted it before - might hv missed the response. I want to check 
>>whether Cancel button is pressed, if yes then want to redirect it to another 
>>page
>>
>>Also how to handle th Exceptions. I am catching many exceptions inside my 
>>Action Handlers. 
>>what shall i do with them ? Currently just printing the error messages on 
>>System.out...., but what is the good practice to handle exceptions ? Close 
>>all Resultsets/ connections and redirect to error page ? write some standard 
>>routine ? 
>>
>>In struts-config i have given mapping to "errors" as global forward, but what 
>>if exceptions occur inside my common classes ?
>>
>>regards
>>Manisha
>>
>>__________________________________________________
>>Do You Yahoo!?
>>Tired of spam? Yahoo! Mail has the best spam protection around 
>>http://mail.yahoo.com 
>>
>>
>> 
>>
>
>This message contains information that may be privileged or confidential and 
>is the property of the Capgemini Group. It is intended only for the person to 
>whom it is addressed. If you are not the intended recipient, you are not 
>authorized to read, print, retain, copy, disseminate, distribute, or use this 
>message or any part thereof. If you receive this message in error, please 
>notify the sender immediately and delete all copies of this message.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> 
>---------------------------------
>Do you Yahoo!?
> Yahoo! Mail - Find what you need with new enhanced search. Learn more.
> 
>

This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient, you are not authorized 
to read, print, retain, copy, disseminate, distribute, or use this message or 
any part thereof. If you receive this message in error, please notify the 
sender immediately and delete all copies of this message.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


                
---------------------------------
Do you Yahoo!?
 All your favorites on one personal page – Try My Yahoo!

Reply via email to