i have 2 html:select, second html:select display corrspondent result after
first html:select element is selected, the selection will trigger customried
ajax on fly.
second html:select can generate and displayed results, but cannot generate
selection box(dropdown list), why? or limition of struts for the html:select?
if i make change to second jsp file, and change from "html:select" to regular
"select", the results can display inside dropdown list.
after calling document.getElementById(why).innerHTML, the output of
"html:select" why can not be recognized by struts?
any expert can provide input?
tks in advance
john
File1.jsp
<script>
.....
/* some script code to called file2.jsp to generate the result */
.....
document.getElementById(why).innerHTML=response;
.....
</script>
<table>
<tr><td>
<html:select property="course_name" onchange="showstudent(this.form)">
<html:option value="maths"/>
< html:option value="english"/>
</html:select>
</td></tr>
<tr><td>
<div id="why">student name here </div>
</td><tr>
</table>
file2.jsp
<html:select property="student_name">
<html:option value="john"/>
< html:option value="mary"/>
</html:select>
---------------------------------
Looking for a deal? Find great prices on flights and hotels with Yahoo!
FareChase.