You do not have access to any resources in ActionForm. The form is just there to act as a conduit for data - something for it to pass through - like electricity passes through a wire. In that case, the electricity would represent your data and the wire would be your form. Notice that a wire does not change the state of the electricity.

The proper place to do this is in an Action class. Action has a getResources method (a few different signatures I believe, actually). This is where you would get that data. You could then set some property of your form accordingly.

Darren Hill wrote:

Hi All,

My ActionForm is populating a drop-down list ( LabelvalueBean's ) and I want
to say "- None -" for a none-selection .. and want it to be i18n.  So, can I
access the ApplicationResource to retrieve that 'None'.  If so, how?

Is this the best idea?

Darren.

--
Eddie Bush




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

Reply via email to