javabean in jsp

hi all, i have i small javabean like this :

package web;

publicclass Student{

private String name;

privateint birth;

public Student(){

name="hahiho";

birth = 1900;

}

public String getName(){

return name;

}

publicint getBirth(){

return birth;

}

publicvoid setName(String name){

this.name = name;

}

publicvoid setBirth(int birth){

this.birth = birth;

}

}

in jsp page :

<jsp:useBean id="sv" class="web.Student" />

<div class="Info">

Student name : <jsp:getProperty name="sv" property="Name" />

</div>

i run it with apache tomcat 5.5 and it results an error page :

Cannot find any information on property 'Name' in a bean of type 'web.Student'

if i replace "<jsp:getProperty name="sv" property="Name" />" with "<%= sv.getName() %>" , it's ok . But i don't know why has error with using jsp:getProperty tag , help me !

thanks.

[2115 byte] By [secmaska] at [2007-11-27 9:47:54]
# 1

Try using a lowercase 'n'...

As in -

<jsp:useBean id="sv" class="web.Student" />

<div class="Info">

Student name : <jsp:getProperty name="sv" property="name" />

</div>

--

Discussion of Java, Struts, Spring, Hibernate, etc. http://www.wantii.com

weswannemachera at 2007-7-13 0:01:00 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
ok, right , thank weswannemacher.
secmaska at 2007-7-13 0:01:00 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...