Announcement Announcement Module
Collapse
No announcement yet.
Showing Exception on jsp page Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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

    Comment

    Working...
    X