Thanks I can believe I am that tired that I was doing that
-----Original Message----- From: A mailing list for discussion about Sun Microsystem's Java Servlet API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Lance Prais Sent: Friday, June 21, 2002 10:17 PM To: [EMAIL PROTECTED] Subject: IF.. ELSE Problem I am through confused to as one the following if statement is not working: Could someone please look at it and let me know what I am doing wrong. As you can see it is very simple. You will se the output below the code <%@ page language="java" %> <%@ page import="java.util.*" %> <%@ page import="java.net.*" %> <% String Collection=""; Collection = request.getParameter("collection"); %> <%=Collection%> <% if (request.getParameter("collection")=="scopus") {%> You <%} else if (Collection=="securetrak") {%> me <%} else {%> they <%}%> OUTPUT: scopus they As you can see it is recognizing the "Collection " but ignoring the Statement. I am actually getting the following errors on Iplanet and do not understand: /usr/local/netscape/server4/https-kb-dev/config/../ClassCache/_jsps/_help_js p.java:89: 'try' without 'catch' or 'finally'. } else ^ /usr/local/netscape/server4/https-kb-dev/config/../ClassCache/_jsps/_help_js p.java:89: 'else' without 'if'. } else ^ /usr/local/netscape/server4/https-kb-dev/config/../ClassCache/_jsps/_help_js p.java:114: Type expected. } catch (Exception ex) { ^ 5 errors Thank you in advance ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
