struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nikhil walvekar <>
Subject Re: <html:options .... >
Date Wed, 09 Jun 2004 09:06:58 GMT
for html:select tag you can specify value
there you can write your default value from some bean
<html:select size="1" name="sort"
onchange="document.forms[4].elements[2].focus()" value="<%= someBean.getDefault()%>">
<html:options collection="SORT" property="value"

Caroline Jen <> wrote:
I try to create a drop down menu as follow:

<html:select size="1" name="sort"
<html:options collection="SORT" property="value"

I am able to disply the menu.  

I want one of the options to be selected by default. 
Therefore, I want to type SELECTED somewhere.  How do
I do it?

Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 

To unsubscribe, e-mail:
For additional commands, e-mail:


Yahoo! India Matrimony: Find your partner online.
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message