Anybody out there run into a problem with string compares in JSP? I'm using
JRun 2.3 build 153. I've executed the following code in a class with no
problem, but inside a JSP I get an error (which I don't know what it is
because the exception isn't being thrown correctly).
<html>
<head>
<title>Login Page</title>
</head>
<%@ page language="java" import="java.util.*, java.sql.*, java.lang.*" %>
<%!
String strError;
static String LOGIN = "login";
%>
<%
// Following code is for debugging purposes - doesn't work at the moment
String strError = request.getParameter("error");
if (strError.compareTo( "login" ) == 0)
{
out.println(strError + "::");
}
out.println(strError);
%>
<body>
.
.
.
Any ideas?
Thanks,
David
______________________________________________________
Get Your Private, Free Email 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