
<%@page contentType="text/html" pageEncoding="UTF-8" errorPage="error.jsp"%>
<%@page import="com.ingenious.impicitdao.*,com.ingenious.bean.*"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
**<jsp:useBean id="obj" class="com.ingenious.bean.UserBean"scope="session"/>**
<jsp:setProperty property="*" name="obj"/>
<%--<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>
<%
//String number1 = request.getParameter("n1");
//String number2 = request.getParameter("n2");
//int a = Integer.parseInt(number1);
//int b = Integer.parseInt(number2);
//int c = a / b;
// out.print("division of numbers is: " + c);
%>
</body>
</html>--%>
<html>
<body>
<%-- Today is:<br/><%=java.util.Calendar.getInstance().getTime()%>--%>
<%--<%=request.getParameter("name")%>
Welcome,${param.name}
Value is${sessionScope.user}--%>
<%
RegisterDao dao = new RegisterDao();
int i = dao.addRegister(obj);
if (i > 0) {
out.print("You are Succssfully registered");
}
%>
</body>
</html>
i got an exception in this which is in BOLD letters i can't found a solution so please provide me a solution yet. Thanks
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.