Many thanks ! ----- Original Message ----- From: "Ilya A. Kriveshko" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, September 05, 2002 3:53 PM Subject: Re: "if" not working
> I prefer the "search".equals(<xsp-request:get-parameter name="todo"/>) > form, since it will never throw a NullPointerException. > > The reason ``=='' doesn't work is because ``=='' is identity, not > equality check. It will only return true if the two operands are the > same object, not two different objects having the same value. > > 2c > -- > Ilya > > Rob Grundel wrote: > > > use the .equals("todo") operator on the string comparison > > > > -----Original Message----- > > From: Ganael LAPLANCHE [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, 5 September 2002 11:49 PM > > To: [EMAIL PROTECTED] > > Subject: "if" not working > > > > Hi all, > > > > I'm trying to test the value of a hidden parameter sent via an > > html form... > > Here is the test : > > > > <xsp:logic> > > if(<xsp-request:get-parameter name="todo"/>=="search") > > { > > <xsp:content>That's ok !</xsp:content> > > } > > <xsp:logic> > > > > The test never returns true... What's wrong ??? > > > > Thank you, > > Gan. > > > > > > > > =========================================================================== > > > > > > This email may be confidential and/or privileged. Only the intended > > recipient may access or use it. > > > > We use virus scanning software but exclude all liability for viruses > > or similar in any attachment. > > > > Copyright in this email and any document created by Pitt & Sherry > > Consulting Engineers will > > > > remain vested in Pitt & Sherry Consulting Engineers and will not > > transfer to you. > > > > If you have received this email by mistake, please telephone (613) > > 6323 1900 (reverse charges), > > > > or forward message to [EMAIL PROTECTED] > > > > =========================================================================== > > > > > > > > > > > > --------------------------------------------------------------------- > Please check that your question has not already been answered in the > FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> > > To unsubscribe, e-mail: <[EMAIL PROTECTED]> > For additional commands, e-mail: <[EMAIL PROTECTED]> > > --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>