Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

doubt regarding <html:select>

 
parthiban thrangaraju
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,



<table class="col-1">
<html:form action="/clientsForm" styleId="contacts-form">
<tr>
<td>
<bean:message key="clientscomment.title3"/><br/>
</td>
<td>
<html:text property="name"/>
</td>
<td>
<html:errors property="name"/><br/>
</td>
</tr>
<tr>
<td>
<bean:message key="clientscomment.title8"/>

</td>
<td>

<html:select property="typeofbusiness" onchange="call(this);">

<htmlption value="">Select TypeofBusiness</htmlption>
<htmlption value="1"><%="NemoTravels"%></htmlption>
<htmlption value="2">NemoHotels</htmlption>
<htmlption value="3">NemoCorporateTravels</htmlption>
<htmlption value="4">NemoAgriCulture</htmlption>
<htmlption value="5"><%="NemoConstructions"%></htmlption>
<htmlption value="6">NemoFoundation</htmlption>
<htmlption value="7">NemoItSolutions</htmlption>
<htmlption value="8">Nemo</htmlption>
<htmlption value="9">Nemo</htmlption>
<htmlption value="10">Nemo</htmlption>
<htmlption value="11">Nemo</htmlption>

</html:select>
</td>

<td>
<html:errors property="typeofbusiness"/><br/>

</td>
</tr>

<tr>
<td colspan="3">
<select id="combo" name="combo2"/>
<%--<html:select property="typeofbusiness" onfocus="combo" onchange="combo2" />--%>
</td>
</tr>
<tr>
<td>
<bean:message key="clientscomment.title4"/>
</td>
<td>

<html:text property="email" />
</td>
<td>
<html:errors property="email"/>
</td>
</tr>
<tr>
<td>
<bean:message key="clientscomment.title7"/>
</td>
<td>
<html:text property="contactno" />
</td>
<td>
<html:errors property="contactno"/>
</td>
</tr>
<tr>
<td>
<bean:message key="clientscomment.title5"/><br/>
</td>
<td>
<html:text property="state" />
</td>
<td>
<html:errors property="state"/>
</td>
</tr>
<tr>
<td>
<bean:message key="clientscomment.title6"/>
</td>
<td>
<html:textarea property="message" />
</td>
<td>
<html:errors property="message"/>
</td>
</tr>
<tr class="wrapper">
<td colspan="3">
<html:submit value="SUBMIT" styleId="submit"/>
</td>
</tr>
</html:form>
</table>


in the above code hot to convert this code <select id="combo" name="combo2"/> to <html:select>

can any one help me

thanks in advance
parthiban
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic