-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------

Chris Kmiec wrote:

> p.s.  Just to be on the safe side, I also included the following line at
> the top of my jsp file:
>
> <USEBEAN NAME="tb" TYPE="TestBean" LIFESPAN="page"></USEBEAN>
>

This creates a variable named "tb" in the generated servlet, so the proper way to get 
the name property would be:

    <%= tb.getName() %>

Using "TestBean.getName()" in this case tries to find a public static method named 
"getName()" in your TestBean class, just like it would if you used this outside a JSP 
page.  Since you don't have such a static method defined, you are triggering a compile 
error.

Craig McClanahan




--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to