Counting the number of hits of a field-any actionlisteners available??

  • Thread starter Sumon.Mukherjee
  • Start date
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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top