Would someone double check my logic here. The itmclosed variable is coming
back as "undefined", and I can't figure out why.


String itmclosed = request.getParameter("itmclosed");

if(! itmclosed.equalsIgnoreCase("both")){
 if(itmclosed.equalsIgnoreCase("yes")){
  //look for open items
 }else{
  //look for closed itmes
 }
}

<%= itmclosed %> this comes out as undefined
<tr>
 <td><b>Closed</b></td>
 <td>
 Yes<input type="radio" name="itmclosed" value="yes" checked/>&nbsp;
 No<input type="radio" name="itmclosed" value="no"/>&nbsp;
 Both<input type="radio" name="itmclosed" value="both"/>
 </td>
</tr>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com

Reply via email to