aspose file tools
The moose likes Struts and the fly likes drawdown select box in strruts Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "drawdown select box in strruts" Watch "drawdown select box in strruts" New topic
Author

drawdown select box in strruts

zb cong
Ranch Hand

Joined: Jan 14, 2002
Posts: 403
hello
i find that the "<html:select>" is a list select box,i wanna "drawdown" select box in struts? how can i do? thank you very much! .
Ravi Veera
Ranch Hand

Joined: Jun 23, 2001
Posts: 127
what is a drawdown box? or do you mean dropdown box?
Junilu Lacar
Bartender

Joined: Feb 26, 2001
Posts: 4118
    
    2

The problem is really not with Struts per se. Just specify a size=1.
<html:select ... size="1">
Junilu
[ March 03, 2002: Message edited by: Junilu Lacar ]

Junilu - [How to Ask Questions] [How to Answer Questions] [MiH]
zb cong
Ranch Hand

Joined: Jan 14, 2002
Posts: 403
thanks
it works,but its appearance don't seem like that of dropdown list in html tag.
zb cong
Ranch Hand

Joined: Jan 14, 2002
Posts: 403
hi,Junilu,see the bottom of the page,the "Hop to" select box is just what i want,could you produce such a dropdown by using struts tag?
thank
Junilu Lacar
Bartender

Joined: Feb 26, 2001
Posts: 4118
    
    2

What does your tag code look like? What does the generated HTML look like? I don't see why, if you are doing it correctly, the output wouldn't be exactly like the "Hop to" select.
For example:
in JSP:

would result in HTML like:
<select name="primaryAddress.state" size="1">
<option value=""></option>
<option value="AK">Alaska</option>
<option value="AL">Alabama</option>
<option value="AR">Arkansas</option>
<option value="AZ">Arizona</option>
<option value="CA">California</option>
....
</select>

So, what exactly is the difference that you are seeing between "Hop to" and your output?
Junilu
[ March 04, 2002: Message edited by: Junilu Lacar ]
zb cong
Ranch Hand

Joined: Jan 14, 2002
Posts: 403
thank you very much
i got it!
Lavanya ch
Ranch Hand

Joined: Dec 16, 2004
Posts: 75
That is working fine if I have multiple="false" in my select tag
I want the same look for <html:select multiple="true" >
How can I do that??
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: drawdown select box in strruts
 
Similar Threads
struts2 select and js
Populate the array
select box
Struts 1.1: Help needed with html:select, html:options, html:optionsCollection