If you're throwing a CAS authentication expection (and you extend the
AuthenticationException class) any value in the "code" field is mapped back
to a message in the message.properties that will be displayed on the login
page.

Otherwise, if you throw a RuntimeException (or something that extends a
RuntimeException) it should be propagated up and you can either use J2EE's
exception handling mechanisms or Springs.

-Scott

On 7/5/07, Christian Haugen <[EMAIL PROTECTED]> wrote:

 Hi!



Let's say that my database is down, how do I get that message across to
the user? When the pasword and username is validatet it replies with a
boolean answer. I want to do something similar for when I get a reply from
the db signifying that something is not right.

Lets say I return an DBok or a DBnok depending on whether the database is
up and running or not, where would I link this to an dberror.jsp in the
view folder?



Thank you so much in advance..



Christian

_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas




--
-Scott Battaglia

LinkedIn: http://www.linkedin.com/in/scottbattaglia
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas

Reply via email to