> -----Original Message-----
> From: Mark Silva [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 09, 2002 3:29 PM
> To: Struts Users Mailing List
> Subject: RE: Simple Question
>
>
> No,
>
> i want to refer to it in the consutructor of my ActionForm, to
> set some default values of a search form (dates, times, etc.)
> this will allow the search page to be easily configurable later on.
>
> i thought there might be a helper class that takes into account
> the file name and path, rather than using the ResourcesBundle
> from scratch.  is there something like this?

Since 1.1b1, the instance of MessageResources that you need is set in the
request (under Action.MESSAGES_KEY) during request processing.  The current
subapp and message-resources key are used to decide which one to set.  So,
you will need access to the request in order to retrieve the correct
instance.

I could be wrong, (its happened before ;) but I don't beleive struts will
ever call your constructor anyway.

Look at the docs for ActionForm.  It's lifecycle is described pretty well in
the docs.  You might have some luck with reset().

>
> thanks,
> mark
>


James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta



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

Reply via email to