S
Sumon.Mukherjee
Hi All,
I am writing a simple jsp code.I have a tag lib called MyTag which has
a tag called MyControl.
The MyControl tag has diferent attributes.One of them defines the type
of Control.In this case it is "dropdown".
Now I want to have some kind of "hit counter" mechanism which will
check whether any value is selected from the drop-down or not.
If none of the drop-downs are selected it will throw an error saying
"Please select atleast one drop-down"
Any help will be appreciated!!!
This is the code ---
<%@ taglib uri="MyTag.tld" prefix="mytag" %>
<table>
<tr>
<td width="150" align="left">
<span style="FONT-SIZE: 8pt; COLOR: navy; FONT-FAMILY: Arial; mso-bidi-
font-size: 12.0pt">
DropDown 1:
</span>
</td>
<td align="right">
<mytag:MyControl
controlName="DropDown1"
controlType="dropdown_list"
controlSourceList=" ;Yes;No;"/>
</td>
<td width="200" align="right">
<span style="FONT-SIZE: 8pt; COLOR: navy; FONT-FAMILY: Arial; mso-bidi-
font-size: 12.0pt">
DropDown 2:
</span>
</td>
<td align="left">
<mytag:MyControl
controlName="DropDown2"
controlType="dropdown_list"
controlSourceList=" ;Yes;No;"/>
</td>
<td width="200" align="right">
<span style="FONT-SIZE: 8pt; COLOR: navy; FONT-FAMILY: Arial; mso-bidi-
font-size: 12.0pt">
DropDown 3:
</span>
</td>
<td align="left">
<mytag:MyControl
controlName="director"
controlType="dropdown_list"
controlSourceList=" ;Yes;No;"/>
</td>
</tr>
</table>
I am writing a simple jsp code.I have a tag lib called MyTag which has
a tag called MyControl.
The MyControl tag has diferent attributes.One of them defines the type
of Control.In this case it is "dropdown".
Now I want to have some kind of "hit counter" mechanism which will
check whether any value is selected from the drop-down or not.
If none of the drop-downs are selected it will throw an error saying
"Please select atleast one drop-down"
Any help will be appreciated!!!
This is the code ---
<%@ taglib uri="MyTag.tld" prefix="mytag" %>
<table>
<tr>
<td width="150" align="left">
<span style="FONT-SIZE: 8pt; COLOR: navy; FONT-FAMILY: Arial; mso-bidi-
font-size: 12.0pt">
DropDown 1:
</span>
</td>
<td align="right">
<mytag:MyControl
controlName="DropDown1"
controlType="dropdown_list"
controlSourceList=" ;Yes;No;"/>
</td>
<td width="200" align="right">
<span style="FONT-SIZE: 8pt; COLOR: navy; FONT-FAMILY: Arial; mso-bidi-
font-size: 12.0pt">
DropDown 2:
</span>
</td>
<td align="left">
<mytag:MyControl
controlName="DropDown2"
controlType="dropdown_list"
controlSourceList=" ;Yes;No;"/>
</td>
<td width="200" align="right">
<span style="FONT-SIZE: 8pt; COLOR: navy; FONT-FAMILY: Arial; mso-bidi-
font-size: 12.0pt">
DropDown 3:
</span>
</td>
<td align="left">
<mytag:MyControl
controlName="director"
controlType="dropdown_list"
controlSourceList=" ;Yes;No;"/>
</td>
</tr>
</table>