This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes multibox query Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "multibox query" Watch "multibox query" New topic
Author

multibox query

lee anthony
Ranch Hand

Joined: Jan 23, 2004
Posts: 35
i have mutibox codes in JSP:
<logic:iterate id="colpermission" name="colpermissions">
<tr>
<td align="right" style="vertical-align: top;bgcolor="#CBDAE5">
<html:multibox property="selectedItems">
<bean:write name="colpermission" property="name"/>
</html:multibox>
</td>
<td style="vertical-align: top;" bgcolor="#CBDAE5">
<bean:write name="colpermission" property="name"/>
</td>
<td style="vertical-align: top;" bgcolor="#CBDAE5">
<bean:write name="colpermission" property="description"/>
</td>
</tr>
</logic:iterate>
problem is how do i retreive the selected items in Action .class
help !!
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
The selected value(s) should be available through your FormBean just like any other form elements.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
lee anthony
Ranch Hand

Joined: Jan 23, 2004
Posts: 35
Question is after getting values -getparameterValues in action class and saving in db
when next time page being reopened it should show the last time --checked box
prepopulated multibox
in short how do i prepopulate the multibox
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Are you using a FormBean? If you aren't, start using one -- otherwise you'll have to write the pre-populating logic yourself. You could take a look at this for starters.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: multibox query
 
Similar Threads
nested iterate-help
html:multibox and disabled attribute
On htm:multibox
problem with logic:iterator in dividing the rows to two coloums
formatting problem