JSP学习笔记(七):使用JavaBean
bean.java
public class B1 {
public String getString()
{
return "content";
}
}
public String getString()
{
return "content";
}
}
page.jsp
<%
B1 b1 = new B1();
out.print(b1.getString());
%>
B1 b1 = new B1();
out.print(b1.getString());
%>