Below code give output NULL
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Registration</title>
</head>
<body>
<
jsp:useBean id="userBean" class="registration.UserBean" scope="session">
</jsp:useBean>
YOUR NAME :<jsp:getProperty name="userBean" property="name"/>
YOUR EMAIL:<jsp:getProperty name="userBean" property="email"/>
</body>
</html>
OUTPUT is below
YOUR NAME : NULL
YOUR EMAIL :NULL
but when i write same code in scriplet it give correct output