urgent

i have a jsp in which i need to hide a field when it is first displayed.

i have 2 radio buttons yes and no. the action class sets the no radio button as default. there is a text message that needs to be dispalyed only when the yes radio button is clicked. i am doing this with java script but the first time the page is loaded/displayed since the default is no and there is no click event, the msg gets displayed which should not happen.

1. where do i do this in the action class that is responsible for displaying the jsp or in the jsp itself.

<html:form action="/submit">

<table border="0" cellspacing="0" cellpadding="0">

<tr>

<td id="additional_borrowers_0_spacerabove" colspan="3">

<img src="images/spacer.gif" width="1" height="2">

</td>

</tr>

<tr id="additional_borrowers_0_row">

<td class="DataPrompt">Are there any additional borrowers?</td>

<td><img src="images/spacer.gif" width="1" height="1"></td>

<td class="Data">

<html:radio property="moreBorrowers" styleId="additional_borrowers_0" value="yes" onClick="toggle1(this);" /> Yes

<html:radio property="moreBorrowers" styleId="additional_borrowers_0" value="no" onClick="toggle1(this);" /> No

</td>

</tr>

<tr>

<td id="additional_borrowers_0_spacerbelow" colspan="3">

<img src="images/spacer.gif" width="1" height="2">

</td>

</tr>

<tr id="search_0_row">

<td class="Data" colspan="3">

Click Continue To search For Additional borrowers from existing system records.

</td>

</tr>

</table></td>

</html:form>

[1844 byte] By [makthara] at [2007-11-27 6:30:43]
# 1
no need for JSP...u can do this if you use javascript innerhtml properly...the below link is of some use to you http://www.tizag.com/javascriptT/javascript-innerHTML.phphope u get the picture...
subbu_javaa at 2007-7-12 17:55:21 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...