Hi,

can anyone tell me why I can't use any comparison with a requested parameter
value, like this:

        String strAction  = request.getParameter("fmAction");

        if (strAction == "write") {
                out.println("Test");
        }

If I print the strAction string it gives me "write", but the if statement
won't accept it.

Thanks,
Jon Dal

--------------------------------------------
J�n Dal Kristbj�rnsson
[EMAIL PROTECTED]

Innn ehf.
Laugavegur 26
511-3444
--------------------------------------------

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to