struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: problem with select boxes
Date Fri, 26 Dec 2014 19:22:57 GMT
2014-12-26 18:42 GMT+01:00 Yaragalla Muralidhar <yaragallamurali@gmail.com>:
> Hi
>     If i have 5 select boxes on the first page which is mapped to lists.
> this lists should be populated in the action class that launches the page
> and also in the action class that we are submitting. So we have to write
> the same code in two places. Is there a way that we can avoid this?

You can use inheritance or different methods in the same action class
ie. input() and save() - then you can use the same list for populating
the form and storing the values.


Regards
-- 
Ɓukasz
+ 48 606 323 122 http://www.lenart.org.pl/

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


Mime
View raw message