hey use the following code you wil get "yes"

<%   BufferedReader in = new BufferedReader(
                         new InputStreamReader(
                          yc.getInputStream()));

 String inputLine;

if ( (inputLine.substring(0,1)).equals("1") ) {
   out.println("yes");
 }
else {
    out.println("no");
}
%>



since you are using == which will check for object reference obviously your
inputline is a string object that will be in some other memory location than
"1" which is also a string.
.equals is the correct method to check for value of a string

Regards

Ramesh Kesavanarayanan

Electronic Data Systems
Steeple Reach,
25, Cathedral Road,

  91-44-811 3801 to 15 ext :2186
  91-44-233 0380 (res)
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]

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

Reply via email to