Hello Ranchers...
Here is a error with me..
actully i'm not using that code anywhere in the program..
but i don't know.. still i'm getting the same trouble...
the code of
jsp is here
<html>
<head>
<title>Employee regs
</title>
</head>
<%@ page language="java" session="true" import="java.sql.*" %>
<body>
<form name ="form2" method = post action ="http://172.16.0.8:8080/check/lib/edit.html">
<%
String sea = request.getParameter("search");
try
{
try
{Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
}
catch(ClassNotFoundException e)
{out.println(e);
}
String dbURL = "jdbc

dbc:li";
Connection dbCon;
dbCon = DriverManager.getConnection(dbURL);
String query = "Select * from userde where name ="+"'"+sea+"'";
Statement stmt = dbCon.createStatement();
ResultSet rs = stmt.executeQuery(query);
while(rs.next())
{
String name = rs.getString(1);
String add = rs.getString(4);
String email = rs.getString(5);
String phone = rs.getString(6);
out.println(name);
out.println(add);
out.println(email);
out.println(phone);
out.println("Searched Successfully!!") ;
}
dbCon.close();
stmt.close();
}
catch(SQLException e)
{out.println("fucking problem " +e);
}
%>
<input type = "text" name = "name" value= "<%= name%>"
<input type = "text" name = "add" value= "<%= add%>"
<input type = "text" name = "email" value= "<%= email%>"
<input type = "text" name = "phone" value= "<%= phone%>"
<input type = "submit" value = "submit" name = "b1">
</form>
</body>
</html>
the error is here
An error occurred at line: 54 in the jsp file: /check/lib/searc.jsp
Generated
servlet error:
[javac] Compiling 1 source file
C:\Java\tomcat\jakarta\jakarta-tomcat-5.0.19\work\Catalina\localhost\_\org\apache\jsp\check\lib\searc_jsp.java:98: cannot find symbol
symbol : variable name
location: class org.apache.jsp.check.lib.searc_jsp
out.print( name);
^
An error occurred at line: 55 in the jsp file: /check/lib/searc.jsp
Generated servlet error:
C:\Java\tomcat\jakarta\jakarta-tomcat-5.0.19\work\Catalina\localhost\_\org\apache\jsp\check\lib\searc_jsp.java:101: cannot find symbol
symbol : variable add
location: class org.apache.jsp.check.lib.searc_jsp
out.print( add);
^
i don't know what error is this..
can u clear me.. what is the reason for this.?