Hi,
I have a html page with a user registration form. I collect the data and action is :
<form name="register" action="../JSP/Register.jsp" method="post">
Then on the jsp page i have
<HTML>
<HEAD>
<TITLE>Reg JSP</TITLE>
<LINK REL="stylesheet" TYPE="text/css" HREF="commonstyle.css">
</HEAD>
<BODY>
<jsp:useBean id ="user" class ="Data.AddUserBean" />
<jsp:setProperty name ="user" property="*" />
<H1>
Customer Name : <jsp:getProperty name = "user" property = "sName" /><br>
Age :<jsp:getProperty name = "user" property = "iAge" /><br>
Email:<jsp:getProperty name = "user" property = "sEmail" /><br>
</H1>
The bean is in Package Data; This is a java class having get and set methods for these three properties sName, iAge and sEmail.
When I am trying to execute the code, it gives me error :
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Cannot find any information on property 'sName' in a bean of type 'Data.AddUserBean'
I am using Tomcat 6 and Eclipse IDE.
Any Suggestions???