struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eddie Bush <>
Subject Re: Initialization in a dispatchAction class
Date Mon, 29 Jul 2002 16:04:09 GMT
That was my thought, but, not knowing what you'd tried, I didn't want to 
suggest it :-)

I haven't fooled around with extending the dispatch actions - but I 
don't see why this would be a problem.  Just extend it, do what you need 
to, and then call the super.execute(...).  I think that's where you'll 
get the most mileage ;-) wrote:

>* I've tried simply adding in another action called startPremadeReports 
>that forwards to:
>Problem is that the premadeReports has validation which fails because 
>you have not been to the form yet
>* I've tried a globalForward but that has the same problem...
>* The only thing that works so far is to have a whole different action 
>that is exactly the same without validation.  then I am back to needing 
>the action=init on the first call.
>I would really prefer not to hack the source code for a default setting, 
>but know that I am thinking about it, can I override the execute method 
>or something to check for the parameter, set a default if there is not 
>one there and then forward on to the super.execute method?  Hmmmmmmmm

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message