Error Handling In Struts
tutorial we'll explore how to enable the Struts 2 framework to handle any uncaught exceptions generated by a web application. Struts 2 provides robust exception handling, including the ability to automatically log any uncaught exceptions and redirect the user to a error web page.The Struts 2 user mailing list is an excellent place to get help. If you are having a problem getting the tutorial example applications to work search the Struts 2 mailing list. If you don't find an answer to your problem, post a question on the mailing list.Global Exception HandlingUsing the Struts 2 framework you can specify in the struts.xml how the framework should handle uncaught exceptions. The handling logic can apply to all actions (global exception handling) or to a specific action. Let's first discuss how to enable global exception handling.To enable global exception handling you need to add two nodes to struts.xml: global-exception-mapping and global-results. For example examine struts.xml from the exception_handling project.
Management Accounting Operating System Operating System Android iOS Microsoft Coding Programming http://www.geekinterview.com/question_details/693 J2EE Languages Database Database Data Warehousing Oracle Applications Applications Clarify CRM Oracle Apps Peoplesoft Siebel Software Testing Testing Testing Tools Miscelleanous Helpdesk Mainframe Networking SAP R/3 Web Interview Coaching Career Counseling Job Interview Interview eBooks Accounting eBook C eBook Citrix eBook Job Interview eBook Career error handling Advice Career Change Jobs Help Projects Requests Resume Help Training Advice Engineering Chemical Engineering Civil Engineering Electrical Engineering Electronics Engineering Micro Processor Mechanical Engineering By Company Ask Question Home Interview QuestionsJ2EEStruts How you will handle errors and exceptions using Struts Interview Candidate Jul 15th, 2005 12 error handling in 17296 Struts Answer First Prev Next Last Showing Answers 1 - 12 of 12 Answers abhishek roy Jun 11th, 2005 there are various ways to handle exception:1) To handle errors server side validation can be used using ActionErrors classes can be used.2) The exceptions can be wrapped across different layers to show a user showable exception.3)using validators Was this answer useful?Yes Reply Rahul Pundhir Jul 14th, 2005 Can you suggest me some good Tutorial for Struts available on the Net.With Thanks And RegardsRahul Pundhir Was this answer useful?Yes Reply me Jul 15th, 2005 http://struts.apache.org/userGuide/index.htmlhttp://www.coreservlets.com/Apache-Struts-Tutorial/ Was this answer useful?Yes Reply shreeram Sep 14th, 2005 To get overall view of error handling in struts (it explains struts portlet framework)http://www-128.ibm.com/developerworks/websphere/library/techarticles/0411_sriramoju/0411_sriramoju.html
Was this answer useful?Yes Reply Anant Oct 4th, 2005 Str