Hi,
Check these in your bean code
1. get() and set() use the same datatype
ex public int getEmpID(){
}
and
public void setEmpID(int arg){ //note "int arg"
...
}
2. The methods are public.
Regards,
Nagaraj.
-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Alex A. Almero
Sent: Monday, December 04, 2000 6:20 PM
To: [EMAIL PROTECTED]
Subject: Re: bean.getId() works but <jsp:getProperty name="bean"
property="id"/> doesn't!!
try this <jsp:getProperty name="contacts" property="*" />
----- Original Message -----
From: "Steven and Susan Hirsch" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, December 03, 2000 11:01 AM
Subject: bean.getId() works but <jsp:getProperty name="bean" property="id"/>
doesn't!!
> This is driving me nuts!! I can get a beans attribute in a jsp page by
>
> directly calling the accessor method, but cannot get the value via the
>
> <jsp:getProperty> tag!
>
>
>
> This works:
>
>
>
> <%= contacts.getId() %>
>
>
>
> but this doesn't:
>
> <jsp:getProperty name="contacts" property="id" />
>
>
>
> Any ideas? The jsp is recognizing the bean, I don't have any compilation
>
> errors.
>
>
>
> Steven Hirsch
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
���������������������������������������b��j (��ږKhʋ�~����(�X�{ �������z� �
�� m��� o�j (��&
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets