- From: Suresh Solomon <suresh@yashaa.com>
- Date: Tue, 27 Mar 2001 10:08:21 -0500 (EST)
- To: <www-jigsaw@w3.org>
Received on Tuesday, 27 March 2001 10:21:57 UTC
declare the method in a declaration tag like
<%!
boolean isDefined( HttpServletRequest req, String name, String value )
{
String vals[] = (String [])req.getParameterValues(name);
if (vals != null)
{
for (int i = 1; i<vals.length; i++)
{
if( value.equalsIgnoreCase(vals[i]) )
return true;
}
}
return false;
}
%>
and continue as usual like isDefined(request,"name","value")
thanx,
Suresh
Received on Tuesday, 27 March 2001 10:21:57 UTC