Question regarding on how to show other errors than false username/password
Scott Battaglia
scott.battaglia at gmail.com
Thu Jul 5 15:06:13 EDT 2007
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 <christian.haugen at agresso.no> 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
> cas at tp.its.yale.edu
> http://tp.its.yale.edu/mailman/listinfo/cas
>
>
--
-Scott Battaglia
LinkedIn: http://www.linkedin.com/in/scottbattaglia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tp.its.yale.edu/pipermail/cas/attachments/20070705/274e5a58/attachment.html
More information about the cas
mailing list