Thankyou all String utype = (String) session.getValue("utype"); utype=utype.trim(); is working fine
Regards Vaishali Reliance Ind Ltd A'bad Sitaram_chatti <Sitaram_chatti@I To: [EMAIL PROTECTED] NFOSYS.COM> cc: Sent by: A Subject: Re: session mailing list about Java Server Pages specification and reference <JSP-INTEREST@JAV A.SUN.COM> 06/29/02 02:55 PM Please respond to A mailing list about Java Server Pages specification and reference Use String utype = (String) session.getValue("utype"); similarly preferably use equalsIgnoreCase instead of equals.. hope this will help.. -----Original Message----- From: Vaishali S. Pandya [mailto:[EMAIL PROTECTED]] Sent: Saturday, June 29, 2002 2:38 PM To: [EMAIL PROTECTED] Subject: session Object utype = session.getValue("utype"); if (utype==null || utype.equals("")){ utype="0"; } if (utype.equals("0") || utype.equals("2")){ dis="disabled"; } else{ dis="~"; } out.println("utype = " + utype); out.println("dis = " + dis); the output is this utype = 2 dis = ~ ??????????? when utype is 2 dis should be disabled but it is not there can anyone make me correct? Vaishali Reliance Ind Ltd A'bad =========================================================================== 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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com