struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephan Jones <ste...@redpillconsulting.com>
Subject Question about throwing an exception in the ValidatorForm validate method.
Date Fri, 09 Apr 2004 18:06:02 GMT
I have a problem I need advice solving.

The Validate method does not allow me to check if the session has expired
and throw a suitable exception.
I have the possible scenario where a user calls up a page. Leaves it idle
long enough to expire the session. Then hits the update button.

What happens is the validate method is called and the record is validated.
Since the session has timed out when the  input page with an error is
presented some of the values on my page, (like the current logged in user)
are no longer available.

Ideally I would like to check the session in the validate method, throw my
usual SessionExpiredException if the session is blank but the validate
method does not allow me to override the ValidatorForm validate method.

Any advice on how to elegantly solve this?





Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message