I would like to bring this thread back to life

Laine's proposal was not commited to CVS yet, so I have
introduced several changes and made them work with
build from 29 December:

- introduced AppException which extends Exception
  and has constructors similar to ActionError.

- added support for AppExceptions, which allows user
   to throw exceptions like:
   throw new AppException("error.password.mismatch");

  which cause automatic creation and saving of errors in request/session

- added new configuration parameter 'handler' for the exception:

      <exception
type="org.apache.struts.webapp.example.ExpiredPasswordException"
          path="/changePassword.jsp"
handler="org.apache.struts.action.ExceptionHandler"/>

  where default handler can be used in 99% of cases

- introduced new execute() method in Action, which throws Exception and
  should substitute perform() on the long run. ActionServlet calls
execute(),
  which by default pass control to perform(). (Proposal of Tim Moore)

- modified LogonAction just to show, how exceptions can be handled

modified files:
==============
Action
ActionMapping
ActionServlet
struts-config_1_1.dtd

new files:
==========
ActionException
ActionExceptions
AppException
ExceptionHandler

just for example
================
LogonAction
ApplicationResources.properties

Thanks to the Struts team and Happy New Year for everybody.

Dmitri Valdin


Attachment: changes.zip
Description: Zip compressed data

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to