This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to make <html:select dynamic

 
Don Martino
Greenhorn
Posts: 25
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a struts select defined containing 4 hard coded entries. I want to be able to add a fifth entry that will contain different values without defining a collection. How could this be accomplished?

<html:select property="selectedBillToCustomerId"
styleClass="selectskinny" onchange="selectBillTo();" >
<htmlption value="">--Select--</htmlption>
<htmlption value="Input Circuit">Input Circuit</htmlption>
<htmlption value="Output Circuit">Output Circuit</htmlption>
<htmlption value="Do Not Bill">Do Not Bill</htmlption>

</html:select>
 
Don Martino
Greenhorn
Posts: 25
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could somebody please reply?

I am simply asking how to add another entry to the list dynamically?
 
Sagar Rohankar
Ranch Hand
Posts: 2905
1
Java Spring Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don Henderson wrote:I am simply asking how to add another entry to the list dynamically?

Use JavaScript
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic