Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

multibox query

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 !!
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The selected value(s) should be available through your FormBean just like any other form elements.
 
lee anthony
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
If you like strawberry rhubarb pie, try blueberry rhubarb (bluebarb) pie. And try this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic