• 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

Struts layout:select

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have a small peice of code in my jsp as

<layout:select mode="E,I,I" key="label.mndtyVlntryIn" property='prdWIGnrtnRuleData.mndtyVlntryIn'>
<layout ption value="0" key="combo.select.none"/>
<layout ptions collection="d_CA_RuleMndtyVlntryIN" property="key" labelProperty="value" />
</layout:select>


Suppose the collection d_CA_RuleMndtyVlntryIN has 4 values a,b,c,d
How can i set the value 'a' as default in my combo box....

Any suggestions appreciated..
 
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have no idea how the layout tags work. Using the html tags, I would just set a default value for the field in my form. I would usually do this in the action that is used to display the page.

- Brent
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic