J2EE第3天课件.docVIP

  • 1
  • 0
  • 约5.98千字
  • 约 7页
  • 2018-04-27 发布于河南
  • 举报
J2EE第3天课件

J2EE第3天课件 关于处理多个struts-config.xml配置文件的方法 一个javaweb项目可以有多个struts-config.xml配置文件 这些文件可以在放在WebRoot后面的任何目录下 都需要在web.xml文件进行配置 在开发时,写struts的MVC时,要看清楚struts-config.xml是那个项目的。 关于struts-单选标签 后台form类的数据类型可以是boolean,int/Integer,String 前台jsp页面要设好相应单选数值 public class StudentForm extends ActionForm { private Integer studId; private Boolean sex; private String sex1; private int sex2; //  做好set/get操作 html:form action=/struts/student 学号: html:text property=studId/html:errors property=studId/br/ 性别: nbsp; nbsp; 男:html:radio property=sex2 value=true,0,男-value-0/nbsp; 女html:radio property=sex

文档评论(0)

1亿VIP精品文档

相关文档