Hi Everyone,
I am a beginner in jsp and trying to validate a text field using the following code its shows the followin expection "org.apache.jasper.JasperException: An exception occurred processing JSP page /Test/chkValidation.jsp at line 10"
trialvalidation.jsp
<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*,java.util.regex.* ,java.io.*" errorPage=""
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<form name="tri" action="chkValidation.jsp" method="post">
<input type="text" name="txtId" />
<input type="submit" value="Submit" />
</form>
</body>
</html>
chkValidation.jsp
<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*,java.util.regex.*,java.io.*" errorPage="" import= "Validations.regexFunctions" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<%
regexFunctions reg = new regexFunctions();
String id = request.getParameter("txtId");
int i = reg.checkForString(id);
out.println("i : "+i);
out.println("id : "+id);
%>
</body>
</html>
It is showing the following error or expection to which i can't seem to reslove
org.apache.jasper.JasperException: An exception occurred processing JSP page /Test/chkValidation.jsp at line 10
7:
8: <body>
9: <%
10: regexFunctions reg = new regexFunctions();
11:
12:
13: String id = request.getParameter("txtId");
Hope u will Help me out:
Hopeing for a positive reply: