aspose file tools*
The moose likes Struts and the fly likes How to make <html:select dynamic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to make <html:select dynamic" Watch "How to make <html:select dynamic" New topic
Author

How to make <html:select dynamic

Don Martino
Greenhorn

Joined: Oct 04, 2008
Posts: 25
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

Joined: Oct 04, 2008
Posts: 25
Could somebody please reply?

I am simply asking how to add another entry to the list dynamically?
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Don Henderson wrote:I am simply asking how to add another entry to the list dynamically?

Use JavaScript


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to make <html:select dynamic