Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts layout:select

 
murali karthik
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • 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..
 
Brent Sterling
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic