Hello Everyone,

I am facing a problem while using classes. Can anyone help me out ?
I am having a java class. When I tries to access it using usebean tag of
Jsp then it works fine but if i tries to access it as a class using "new
classname" way of java then I am getting error.
I am attaching the code. Can anyone help me ?

<%@ page import = "login.ValidateUser" %>

<html>
<head><title>CCMS
Login</title></head>
<body bgcolor="white">
<font size=4>
<%
  validate = new login.ValidateUser();          ---- This is the place
where I am creating an instance of                                                     
         class
  validate.DSN = "test"
  validate.UID = "";
  validate.PWD ="";
  validate.userid = "reeta";
  validate.password = "reeta";
  if (validate.Success() == "1") { %>
        Valid User !!!!
<% } else { %>
        Not
a valid User !!! Try Again.

  <form method=get>
  User Id : <input
type=text name=userid> &nbsp;&nbsp;
  Password:<input type=text name=password>
  <input type=submit
value="Submit">
  </form>

<% } %>

</font>
</body>
</html>

Regards,
Reeta

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to