Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to make <html:select dynamic

 
Don Martino
Greenhorn
Posts: 25
  • 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
  • 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: 2907
1
Java Spring Ubuntu
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic