struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Husted <>
Subject Re: Dynamic Bean Populate on Submit.
Date Sat, 06 Apr 2002 15:10:42 GMT
Yes, a nested syntax is supported by Struts 1.0 and later. You can have
other beans on an ActionForm, such as "vo", and then call the properties
as vo.getThis and vo.getThat (property="vo.this", property="vo.that")

However, be very much aware that HTTP is an open and trusting protocol.
Any simple String setter on your value object could be called or set
this way, so think about that before exposing them to HTTP clients on an
ActionForm. This would include more deeply nested properties like

-- Ted Husted, Husted dot Com, Fairport NY US
-- Developing Java Web Applications with Struts
-- Tel: +1 585 737-3463
-- Web:

hemant wrote:
> Iam not aware of the enhancements in Struts 1.1b completely but would like to know if
the following
> functionality exists either in Struts 1.1b or 1.0.2.
> Lets say, we get a collection of ValueObjects and populate the JSP by doing a vo.getXXX
> Since Struts depends heavily on Introspection, Is it possible that  vo.setXXX is called
when someone enters a value and submits?
> This would make life a lot easier.
> (Pardon me if this question was already answered, I didnt get results for my combination
of search-words )
> comments please
> Regards
> pathangi r

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

View raw message