Hey. Just getting started with JSP Beans. I compiled my bean and I put
it in a jar file called harman. It's in my Classpath. Check out the
following. I would appreciate it if you could help me figure out this
problem.
-- JSP FILE--
<head>
<title>Bean Test</title>
</head>
<body>
<jsp:useBean id="BeanTest" scope="page" class="harman.BeanTest"/>
<jsp:getProperty name="BeanTest" property="name"/>
</jsp:useBean>
Hi
</body>
</html>
--- Bean ---
package harman;
import java.io.Serializable;
public class BeanTest implements Serializable
{
private String name ="Cory L Hubert";
private String title = "Site Developer";
private String company = "Plumb Design";
public String getName() {
return name;
}
public String getTitle() {
return title;
}
public String getCompany() {
return company;
}
}
---
What am I doing wrong
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html