Announcement Announcement Module
Collapse
No announcement yet.
error page how it work ? ( newbies ) Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • error page how it work ? ( newbies )

    hello,

    i have a error page set in my properties file , i want to pass a parameter to my error page when it's call ...

    after research , j can see that the method resolveException of the class ApplicationErrorHandler it called when a exception is throw and return a ModelAndView("string",map) , how to read my map into my error page in jsp ???

    my problems is that a have to put a variable in my proprertie file and read it in my eror page to display or not the stack trace according my variable setting in my properties file ...

    Thank for all , sorry for my bad english

  • #2
    ok , i have found a part of my solutions :

    i put my value in the map of the the method resolveException of the class ApplicationErrorHandler who return a ModelAndView and call my page error

    my jsp page retriew my value by :

    <jsp:useBean id="widgets" scope="request" type="java.util.String" />

    this is good i think ( anyone can confirme that ???? ) for all non catched exception ...

    but for catched , if anyone have a idea to make one call for all ...?

    Thanks

    EDIT : it's dont work , my value it passed in request.setAttribute and not in the map ...

    How to retry my value in my jsp when it passed into a map ?
    Last edited by neo; Nov 17th, 2005, 09:40 AM.

    Comment

    Working...
    X