Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

Can a collection property have its changes saved back to the ActionForm?

Andrew Sharpe

2010-03-15

Replies: Find Java Web Hosting

Author LoginPost Reply
Hello all,

I have a List<String> collection that I am displaying in an
<html:select> and it is working great. The problem is that my
jsp page makes changes to that <html:select> control via
javascript (adds new options, removes, etc). I would like these
changes to be saved back to the ActionForm, preferrably to the same
collection where it got its data from.

Struts does not seem to do it by default, that is, the
<html:options> tag seems to make use of the ActionForm's get
property, but not its set. If it is supposed to behave this way please
let me know and I will reexamine my syntax. Otherwise can someone tell
me the easiest way to do this? I am using Struts 1.3.8 and
unfortunately cannot upgrade to Struts 2.

Many thanks in advance,

Andrew



   __________________________________________________________________
The new Internet Explorer® 8 - Faster, safer, easier. Optimized for Yahoo! Get it Now for Free! at http://downloads.yahoo.com/ca/internetexplorer/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 gg3721.com - Jax Systems, LLC, U.S.A.