Hi,
Instead of using "string" use "string1".
eg. if(string.equals("string1"))
also try to print the value of "string"
Regards
Deepak Kumar
http://www.geocities.com/deepak_38
--- Nicholas Larsson <[EMAIL PROTECTED]> wrote:
> Hi
>
> Have a problem. I pass a value fetched from a combo
> box with the post
> method.
> I then use request.getParameter to store the String
> in a new string member.
> When I evaluate the string with
> if(string.equals("string")) it doesn't
> return true even if it contains exactly the same
> string.
> Anyone know why?
>
> /Nico
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with
> body: "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body:
> "set JSP-INTEREST DIGEST".
> 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
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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