Aaron,

I think you have to use something like this:

if (key.equals("AT"){
...do something...
}

because (supposed) key is a string.

Yi

Aaron Prohaska wrote:

> I am trying to do something based on if key is equal to "AT", but I am not
> getting any results. It acts as if key is not equal to "AT", but I can use
> out.println(key) get "AT". Does anyone know why this might not be working?
>
> if (key == "AT") {
> ..do something...
> }
>
> thanks,
>
> Aaron
>
>                 <<:::..:::...::: Aaron Prohaska :::..:::...:::>>
> VerdeSoft Internet Services
> mailto:[EMAIL PROTECTED]          http://www.verdesoft.net/
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

--
Java Programmer |INVISIBLE.INK | http://www.inink.com
1400 Old Country Road Suite 408 | Westbury, NY 11590
Phone: (516) 338 - 5283  Ext.148 | Fax: (516) 876 - 8032

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to