Hi All,
I'm a newbi to JSTL. I'm trying to compare a value while iterating through.
I get a value from the request object, while iterating I want to compare the
values with the value from the request object and if those two values are
equal I want to display the value.
something like this:
for(int i=0; i< vec.size(); i++)
{
Object obj = (Object)vec.elementAt(i);
String name = obj.getFirstName()+" "+obj.getLastName();
if(request.getParameter("reqName").equals(name))
{
"DISPLAY THE FULL NAME"
}
}
I tried to use the <choose> <while> <otherWise> in the <c:forEach> but
couldn't make it work.
Any code snippet would be very helpful.
Thanks in advance,
Aditya.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]