• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

html:select

 
Ranch Hand
Posts: 40
Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I need a help from you. I need to validate a select option. The selection is multi select.

I want to validate like atleast 1 option should be selected or not more than 3. Can you plese tellme what reference i can take in javascript to validate this.

<html:select name="resAssignForm" property="groupMembers" multiple="true" size="11" style="width:138">
<html ptions collection="grpMembers" property="id" labelProperty="text"/>
</html:select>
 
Ranch Hand
Posts: 451
1
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Check this out.


Cheers,
Raj.
 
Bala Raju Mandala
Ranch Hand
Posts: 40
Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
<html:select name="resAssignForm" property="groupMembers" multiple="true" size="11" style="width:138">
<html: options collection="grpMembers" property="id" labelProperty="text"/>
</html:select>

Please tell me what is property="groupMembers", collection="grpMembers", property="id".

I know JSP but i am unable to relate this with the select element we use in old JSP. If some body explain me by comparing them, it will be real help for me.
[ August 14, 2008: Message edited by: Bala Raju Mandala ]
 
You showed up just in time for the waffles! And 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
reply
    Bookmark Topic Watch Topic
  • New Topic