第5章 JSP与JavaBean详解.pptVIP

  • 13
  • 0
  • 约1.33万字
  • 约 23页
  • 2016-03-25 发布于湖北
  • 举报
* 【例5-6】 studnetForm1 .jsp 继续使用Student创建bean,用户可以通过表单来指定bean的属性值 。 %@ page contentType=text/html;Charset=GB2312 % %@ page import=tom.jiafei.*% HTMLBODY bgcolor=cyan BODY FONT size=1 FORM action= Method=post P输入学生的姓名: Input type=text name=name P输入学生的学号: Input type=text name=number P输入学生的身高: Input type=text name=height P输入学生的体重: Input type=text name=weight Input type=submit value=提交 /FORM jsp:useBean id=wangxiaolin class=tom.jiafei.Student scope=page / jsp:setProperty name= wangxiaolin property=* / TABLE border=1 TR TH姓名/TH TH学号/TH TH身高(米)/TH TH体重(公斤)/TH /TR TR

文档评论(0)

1亿VIP精品文档

相关文档