Aaron Prohaska wrote:
>
> Thanks everyone. I actually used key.equalsIgnoreCase("AT") and its works
> perfectly.

One problem might show up with the above code. If you don't check
whether key is not null, then NullPointerException will be thrown. Thus,
following Java FAQ, you should write something like:

if ("AT".equalsIgnoreCase(key)) {
  // ...your code...
}

>
> Aaron

Jacek Laskowski

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