Hi, I'm getting a "cannot resolve symbol getEmpID()" error when I click submit on my html page. I have listed my short html page,
jsp, and bean code below. Thanks so much for your great help! -Carmen
***html code***
<html><body><form action="TestBean.jsp">
name: <input type="text" name="name">
ID#: <input type="text" name="empID">
<input type="submit">
</form></body></html>
***jsp***
<html><body><jsp:useBean id="person" type="foo.Person" class="foo.Employee">
<jsp:setProperty name="person" property="*"/>
</jsp:useBean>
User's name is <%=person.getName()%><br>
ID is <%=person.getEmpID()%>
</body><html>
*** Person bean ***
package foo;
public abstract class Person{
private
String name;
public void setName(String name){this.name = name;}
public String getName(){return name;}
}
*** Employee bean ***
package foo;
public class Employee extends Person{
private int empID;
public void setEmpID(int empID){this.empID=empID;}
public int getEmpID(){return empID;}
}