How the exceptions are handled in struts?

Answer

Exceptions in Struts are handled in two ways:

    • Programmatic exception handling :
    • Explicit try/catch blocks in any code that can throw exception. It works well when custom value (i.e., of variable) needed when error occurs.



  • Declarative exception handling :You can either define <global-exceptions> handling tags in your struts-config.xml or define the exception handling tags within <action></action> tag. It works well when custom page needed when error occurs.

All struts Questions

Ask your interview questions on struts

Write Your comment or Questions if you want the answers on struts from struts Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---