Results 1 to 2 of 2

Thread: Showing Exception on jsp page

  1. #1

    Default Showing Exception on jsp page

    I have made global transitions that catch exception and redirect to a error.jsp page...

    <view-state id="CatchException">
    </view-state>

    <!--The main Flow that loads the home page that is the login page -->
    <global-transitions>
    <transition on-exception="java.lang.Exception" to="CatchException">
    </transition>
    </global-transitions>


    It gets redirected to an error page in case of any exceptions ,
    But i want to show the type of exception on jsp.

    My java.lang.Exception is parent of all classes.
    Please tell me if i get an exception that is child of this,then how can i display the type of exception on jsp page

  2. #2
    Join Date
    Aug 2006
    Location
    Arequipa-Peru / South America
    Posts
    2,796

    Default

    Hello

    Next time use code tags

    But i want to show the type of exception on jsp.
    Why do you want do that? You should show a customize message, what you should perhaps is show such type in some log file

    My java.lang.Exception is parent of all classes.
    Please tell me if i get an exception that is child of this,then how can i display the type of exception on jsp page
    If my memory doesnt fail me, you should show add first a list of the specific exceptions and the parent how the last option. Be careful if you have your own hierarchy of exceptions
    - Manuel Jordan

    Kill Your Pride, Share Your Knowledge With All
    The Fear Of The LORD Is The Beginning Of Knowledge, But Fools Despise Wisdom And Discipline. Proverbs 1:7

    Blog


    Technical Reviewer of Apress

    • Pro SpringSource dm Server
    • Spring Enterprise Recipes: A Problem-Solution Approach
    • Spring Recipes: A Problem-Solution Approach, 2nd Edition
    • Pro Spring Integration
    • Pro Spring Batch
    • Pro Spring 3
    • Pro Spring MVC: With Web Flow
    • Pro Spring Security

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •