TestBean

<%@ page import="test.TestBean"%>
<html>
<body>
<center>
<% TestBean testBean=new TestBean("This is a test java bean.");%>
java bean name is ;
<%=testBean.getName() %>
</center>
</body>
</html>


package test;
public class TestBean{
 private String name=null;
 public TestBean(String strName_p){
  this.name=strName_p;
 }
 public void setName(String strName_p){
  this.name=strName_p;
 }
 public String getName(){
  return this.name;
 }
}

posted on 2008-03-22 10:50 姜波 阅读(371) 评论(1)  编辑  收藏 所属分类: jsp

评论

# re: TestBean[未登录] 2008-03-22 11:53 dd

hahaxiexie  回复  更多评论   


只有注册用户登录后才能发表评论。


网站导航:
 
<2008年3月>
2425262728291
2345678
9101112131415
16171819202122
23242526272829
303112345

导航

统计

常用链接

留言簿(1)

随笔分类

随笔档案

website

搜索

最新评论

阅读排行榜

评论排行榜