> A better way of expressing this would be something like:
> 
>   <command name="myCommand1">
>     <controller-pipeline>
>        <controller class="com.foo.Bootstrap"/>
>        <controller class="com.foo.Authenticate"/>
>        <controller class="com.foo.ModuleSpecific1"/>
>        <controller class="com.foo.Command1"/>
>     </controller-pipeline>
>     <view name="success" path="myPage.jsp"/>
>     <view name="error" path="errorPage.jsp"/>
>   </command>

hmhm. I'm not sure. What about exceptions in a middle controller of pipeline?
Now I do this task using class inheritance like:
Bootstrap
 \
 Authenticate
  \
   Command
If an AuthException occurs in a Command then 
Command can just throw it upper. Authenticate catches 
and process AuthException.

If an FatalException occurs in a Command then 
Command throws it upper. Authenticate throws it upper too.
Bootstrap catches and process AuthException.



-------------------------------------------------------
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp
[INVALID FOOTER]

Reply via email to