Hi
I am a bit confused about using <html:select> and
<html:optionCollection> tag 
Suppose i have defined following in struts-config.xml
file
<form-bean name="viewlinephase"
type="org.apache.struts.action.DynaActionForm">
<form-property name="selectedView"
type="java.lang.String" />
<form-property name="viewNames"
type="java.util.Vector" />
</form-bean>
I have a bean where in i have get and set method for
name and desctiption, suppose the bean is called
MyBean and viewNames vector is populated by MyBean
class

How do i define it in jsp page, 
what i want is some thing like this in html page
<SELECT name="selectedView" size="4">
        <OPTION value="test">
        test data
        </OPTION>
        <OPTION value="test1" selected>
        test dtaa 1
        </OPTION>
</SELECT>

Where test is name and test data1 is description in
MyData bean. also data value selectedView should be
the selected value in option
I have looked the examples supplied but still could
not figure out how it works

Ashish


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to