By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,649 Members | 2,142 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,649 IT Pros & Developers. It's quick & easy.

Displaying multiple beans in a struts form

P: n/a
I have a list of beans that I retrieved from a database. These beans
are all of the same class. Now I want to display these beans in a
struts form so that the user can modify the data in the beans and save
it back to the database.

Can anyone help with this problem? Is there any sample code out there
that would show how to do this?

Thanks
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
There is a lot of online tutorial information you will find searching Google
for struts tutorial. You can include a property easily

<bean:define id="show_P_Msg" name="nextIDForm" property="mcMsgforProf"/>

<logic:equal name="svcCodeForm" property="isUpdateMode" value="true">
Here you are interrogating a property called isUpdateMode in svcCodeForm or
bean.

<html:text name="svcCodeForm" property="svcCode" styleClass="labelsmall2"
size="5" maxlength="5" ></html:text>

These values can be referred to in Javascript as well
var srvicecd = "<%=svcCode%>";
but only for a few user friendly functions. Its just a broad topic and you
should be able to go to the Jakarta Struts site and do some reasearch.


"Glen" <gl*********@email.com> wrote in message
news:ed**************************@posting.google.c om...
I have a list of beans that I retrieved from a database. These beans
are all of the same class. Now I want to display these beans in a
struts form so that the user can modify the data in the beans and save
it back to the database.

Can anyone help with this problem? Is there any sample code out there
that would show how to do this?

Thanks

Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.