i have an index.jsp file, which displays login form. i have JavaBean class which has setter and getter methods.
i want to develop a
servlet,that sets the JavaBean properties. so that i can get those properties in any
jsp(not the consecutive one) using the following code.
<jsp:useBean id="user" class="com.PersistenceJavaBean" scope="session" />
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>OUTPUT</title>
</head>
<body>
Username is: <%= user.getUsername() %>
Password is: <%= user.getPassword() %>
</body>
</html>
i should retrieve the login data, whatever jsp, i use the above code in.
how can we retrieve login data in any jsp, using the above code,once we set the JavaBean properties in a servlet
give me solution without using <setProperty> , <getProperty>, session.getAttribute() , request.getAttribute() in jsp.
and how the servlet will be??
its urgent
thanks
uday