Radio Button Validation

wxdqz

New Member
I have a JSP file like this , whats my requiremtnt is it is must to select one of the radio buttons in both the arrays(action and entity) of radio buttons.I need a java script which alerts the user even if he fails to select one of the radio buttons in arrays(action and entity) of radio buttons.Some one plese help me
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0081)http://devemine.co.helsinki.fi:3510/bms/jsp/administration/administrationmain.jsp -->
<DOCTYPE EN? Transitional 4.0 HTML DTD W3C ?- PUBLIC><html><head><title>administration main page</title>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><link href=http://www.webdeveloper.com/forum/archive/index.php/"/bms/jsp/images/mc.css" type=text/css rel=stylesheet>
<meta content="MSHTML 6.00.2713.1100" name=GENERATOR></head>
<body>
<center>
<table cellSpacing=0 cellPadding=0 width=750 align=center border=0 vspace="0"
hspace="0">
<tbody> <tr> <td bgColor=#aaaaaa rowSpan=9 width="1"><img height=1 src="/bms/jsp/images/blank.gif"
width=1></td>
<td bgColor=#aaaaaa colSpan=2><img height=1
src="/bms/jsp/images/blank.gif" width=598></td>
<td bgColor=#aaaaaa rowSpan=9 width="10"><img height=1 src="/bms/jsp/images/blank.gif"
width=1></td>
</tr>
<tr> <td colSpan=2 background="/bms/jsp/images/header_bg.gif"><img src="/bms/jsp/images/MedicelRGB_crpd_200.gif"
width=200 border=0></td>
</tr>
<tr>
<td colSpan=2 background="/bms/jsp/images/header_bg.gif">&nbsp;</td>
</tr>
<tr> <td colSpan=2 height="1" background="/bms/jsp/images/blank.gif" bgcolor="#AAAAAA"><img src="/bms/jsp/images/blank.gif" width="1" height="1"></td>
</tr>
<tr class="MENU"> <td class="link" colSpan=2 height="35" valign="middle"> <blockquote> <a href="http://devemine.co.helsinki.fi:3510/bms/servlet/main">HOME</a></blockquote>
</td>
</tr>
<tr class="CONTENT"> <td class="CONTENT" vAlign=top colSpan=2 align="center"> <form action=/bms/servlet/adminservlet method=post>
<input type=hidden value=null name=jsp_Divertor>
<input type=hidden
value=NO name=isDelete>
<table width=750 align=center border=0 cellpadding="0" cellspacing="0">
<tr> <td colSpan=2 height="1" background="/bms/jsp/images/blank.gif" bgcolor="#AAAAAA"><img src="/bms/jsp/images/blank.gif" width="1" height="1"></td>
</tr>
<tbody> <tr class="h1" align=left> <td colSpan=2 class="h1" height="25">Administration Management System</td>
</tr>
<tr> <td colSpan=2 height="2" background="/bms/jsp/images/blank.gif" bgcolor="#AAAAAA"><img src="/bms/jsp/images/blank.gif" width="1" height="1"></td>
</tr>
<tr class="h2" align=left> <td colSpan=2 class="h2" height="30"> <input type=radio value=add name=action>
add <br>
</td>
</tr>
<tr class="h3" align=left> <td colSpan=2 class="h3" height="30"> <input type=radio value=search name=action>
view <br>
</td>
</tr>
<tr class="h2" align=left> <td colSpan=2 class="h2" height="30"> <input type=radio value=modify name=action>
modify <br>
</td>
</tr>
<tr class="h3" align=left> <td colSpan=2 class="h3" height="2"> <input type=radio value=delete name=action>
delete <br>
</td>
</tr>
<tr> <td colSpan=2 height="1" background="/bms/jsp/images/blank.gif" bgcolor="#AAAAAA"><img src="/bms/jsp/images/blank.gif" width="1" height="1"></td>
</tr>
<tr class="h2" align=left> <td colSpan=2 class="h2" height="30"> <input type=radio value=directory name=entity>
Directory <br>
</td>
</tr>
<tr class="h3" align=left> <td colSpan=2 class="h3" height="30"> <input type=radio value=organization name=entity>
Organization <br>
</td>
</tr>
<tr class="h2" align=left> <td colSpan=2 class="h2" height="30"> <input type=radio value=profile name=entity>
Profiles <br>
</td>
</tr>
<tr class="h3" align=left> <td colSpan=2 class="h3" height="30"> <input type=radio value=group_data name=entity>
Groups <br>
</td>
</tr>
<tr class="h2" align=left> <td colSpan=2 class="h2" height="30"> <input type=radio value=database name=entity>
Database <br>
</td>
</tr>
<tr class="h3" align=left> <td colSpan=2 class="h3" height="30"> <input type=radio value=user_data name=entity>
Users <br>
</td>
</tr>
<tr class="h2" align=left> <td colSpan=2 class="h2" height="30"> <input type=radio value=privilege name=entity>
Privilege <br>
</td>
</tr>
<tr> <td height="1" colSpan=2 background="/bms/jsp/images/blank.gif"></td>
</tr>
<tr valign="middle"> <td colSpan=2 height="20"> <input type=submit value=GO name="submit">
<input type=reset value=Cancel name="reset">
</td>
</tr>
</tbody> </table>
</form>
</td>
</tr>
<tr> <td colSpan=2 height="1" background="/bms/jsp/images/blank.gif" bgcolor="#AAAAAA"><img src="/bms/jsp/images/blank.gif" width="1" height="1"></td>
</tr>
<tr> <td vAlign=LEFT align=middle colSpan=2 bgcolor="#E9F0E5" height="20"><font face=verdana,arial
color=#aaaaaa size=-2>?2002 MediCel</font></td>
</tr>
<tr> <td colSpan=2 height="1" background="/bms/jsp/images/blank.gif" bgcolor="#AAAAAA"><img src="/bms/jsp/images/blank.gif" width="1" height="1"></td>
</tr>
</tbody> </table>
</center></body></html>
 
Back
Top