org.apache.jasper.JasperException: Cannot find any information on property in a bean of type

This is my bean class,

package com.saravanan.domain;

public class Student {
 String StudentName;

 public String getStudentName() {
  return StudentName;

 public void setStudentName(String studentName) {
  StudentName = studentName;


The below is my servlet’s doGet() method logic,

protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
  Student st = new Student();
  request.setAttribute(“student”, st);
  RequestDispatcher rd = request.getRequestDispatcher(“/display.jsp”);
  rd.forward(request, response);

The below is my display.jsp that renders the content using jsp:useBean standard action tag,
<meta http-equiv=”Content-Type” content=”text/html; charset=ISO-8859-1″>
<title>display page</title>
<jsp:useBean id=”student” scope=”request”/>
<jsp:getProperty name=”student” property=”StudentName”/>

I got below error,

org.apache.jasper.JasperException: Cannot find any information on property ‘StudentName’ in a bean of type ‘com.saravanan.domain.Student’

The issue here is, Bean property names begin with lowercase letters,  It is potentially confusing that the initial lowercase letter by convention appears uppercase in

getter and setter names; for example, getStundentName() and setStudentName(String) would be the getter and setter for property “studentName”.

If Jasper couldn’t find the bean class then it would have said so; if it goes so far as to check the presence of a particular property then it has already introspected the bean class.

Doesnt matter if you created your properties in uppercase, but it is recommended that you have to makesure that property is in lower case.

Solution to fix the problem:

change property=”StudentName” to property=”studentName”


like below,


<jsp:useBean id=”student” scope=”request”/>
<jsp:getProperty name=”student” property=”studentName”/>


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: