struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <>
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 <>:
> 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.

+ 48 606 323 122

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

View raw message