• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

autoselect the radio button if the list has only 1 item

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i want know how to auto select the html:option (radio button field) tag inside the logic:iterate tag if the property being iterated has size 1
 
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi sourabh,

Can you explain the problem statement clearly !?

Do you need Drop down or Radio Button ?

Why logic:iterate ?

What you really intend to achieve ?


Provide Complete Information, so that you can fetch the solution quicker
 
sourabh chhabra
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi vicky

i have a search page which displays me the result in a tabular structure. The first column of the table is radio button which when selected activates the next button on the page.

the table is populated inside a logic iterate tag which iterates on a list of object which contains the information which is to be displayed.

I want that if the list on which the logic iterate tag iterates has just 1 element in it, the radio button displayed in the first column for that record should be auto selected.

the code snipped on jsp is

 
That which doesn't kill us makes us stronger. I think a piece of pie wouldn't kill me. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic