aspose file tools*
The moose likes JSP and the fly likes Error: Cannot find any information on property Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Error: Cannot find any information on property" Watch "Error: Cannot find any information on property" New topic
Author

Error: Cannot find any information on property

Rahul Sudip Bose
Ranch Hand

Joined: Jan 21, 2011
Posts: 637

The error :
org.apache.jasper.JasperException: Cannot find any information on property 'TheName' in a bean of type 'cool.Person'

I want my jsp to be able to get and set "TheName" string of my bean. Please tell me how to do this. The code i tried is shown below :

Bean


JSP


The DD seems to be ok, so i will not put it now.

SCJP 6. Learning more now.
Imran Vohra
Ranch Hand

Joined: Dec 12, 2005
Posts: 77

Hi
Please change
private String TheName = "default";

to

private String theName = "default";
Because, java bean property should start with lower case.


Regards
Imran
Rahul Sudip Bose
Ranch Hand

Joined: Jan 21, 2011
Posts: 637

Thanks for the clue Imran. Progress had stopped because of a small alphabet . But i found some new things and i want to be 100% sure about this capital-small issue.

Your answer needs correction (see the code below)
The property of jsp must begin with small alphabet - the bean can have 1st alphabet capital.
Now looking at this - there is one more possibility - what if i have fields in bean : theName and TheName and corresponding getter and setters. Which one will be used by jsp - theName ? Why did they make this restriction on 1st alphabet ???

This works :
jsp - theName

class-


Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60048
    
  65

That's the way Java beans work. Please read up on beans.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error: Cannot find any information on property
 
Similar Threads
Error in simple bean and JSP
How do I set a bean value from a dropdown?
Cannot find any information on property of bean
Error : GetProperty: Mandatory attribute property missing
<jsp:useBean> example