struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eddie Bush <ekb...@swbell.net>
Subject Re: Initialization in a dispatchAction class
Date Mon, 29 Jul 2002 16:11:16 GMT
LOL - we're all human, last I checked! ;-)

wbchmura@Ensign-BickfordInd.com wrote:

>I forwarded that solution in another e-mail (so the next poor sap that 
>wants to do it can find it in the archives). 
>
>Thanks for the verification I am not a crackpot...  Well, a bad one 
>anyway...
>
>
>
>-----Original Message-----
>From: ekbush [mailto:ekbush@swbell.net]
>Sent: Monday, July 29, 2002 12:04 PM
>To: struts-user
>Subject: Re: Initialization in a dispatchAction class
>
>
>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 ;-)
>
>wbchmura@Ensign-BickfordInd.com wrote:
>
>>H'Okay...
>>
>>* I've tried simply adding in another action called startPremadeReports 
>>
>
>>that forwards to: premadeReports.do?action=init
>>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:   
><mailto:struts-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail: 
><mailto:struts-user-help@jakarta.apache.org>
>
>
>
>--
>To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>
>



--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message