File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

checkbox with single item

 
Devan Brahma
Ranch Hand
Posts: 46
Hibernate Java Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
i'm using struts2 checkbox for selecting of items.I'm using iterator to populate items.And uses the checkbox name to find the length(number of the items).
I do that in the javascript.
Everything went okay but when i have only one item in the list the checkboxname.length doesn't return a value.
Can anyone Please help.
How can i do when the list has only one item?

Thanks,
devan
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic