Hi
Considering that key is a  string, you can also code
so:
if ( key.compareTo("AT")==0 ) { //  It means : key  is equal to "AT"
        // do something
}


On 7 Sep 2000, at 19:01, Raj S wrote:

> Hi,
>    I suppose key is a String,in that case you will need to do this
> if(key.equals("AT").
>
>
> Hope this helps.
>
>
>
> >From: Aaron Prohaska <[EMAIL PROTECTED]>
> >Reply-To: A mailing list about Java Server Pages specification and
> >     reference <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: Problem with if statement
> >Date: Thu, 7 Sep 2000 11:39:30 -0700
> >
> >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
>
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
> Share information about yourself, create your own public profile at
> http://profiles.msn.com.
>
> ===========================================================================
> 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



Fabio Alarcon Ortiz

Seguro Social de Salud, Lima - Peru
Gerencia Central de Desarrollo e Informatica
Gerencia de Sistemas
Phones : (51 1) 265 6000, 265 7000 Extensions 2356, 2357
Mobile : (51 1) 855 1393
ICQ    : 11002875
email  : [EMAIL PROTECTED], [EMAIL PROTECTED]

===========================================================================
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