try
<%= (inputparams.getAreatype()).equals("Nativeforest")?"Checked" :
"Notchecked" %>
Note the extra Parenthesis around the (inputparams.getAreatype())
ERD 2000 A.D.
>From: Peter Hutchinson <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
> reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: "Equals" method not working correctly?
>Date: Wed, 3 May 2000 12:18:18 +1000
>
>Hi,
> I have the following problem :
>
>The expression :
>
> <%= inputparams.getAreatype().equals("Nativeforest")?"Checked" :
>"Notchecked" %>
>
>compiles OK but crashes the JSP
>
>BUT
>
><%= "Nativeforest".equals(inputparams.getAreatype())?"Checked" :
>"Notchecked" %>
>
>works OK !
>
>Any suggestions?
>
>Peter
>
>===========================================================================
>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
===========================================================================
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