上面文章时普通的业务那个方法中收集一个实体类,这篇文章想收集两个实体类。

文本要做的是:在person.jsp页面上,有两个表单。分别是普通用户和管理员用户的表单(普通用户的表单和管理员用户的表单里面的标签的name都是一样的)。当输入一些数据之后按提交,不管是普通用户的表单还是管理员用户的表单都会提交到后台的同一个Action(控制器)的同一个方法去处理。然后由这个方法里面的两个实体类参数去收集数据,然后Action处理好之后再回到person.jsp把收集到的数据再显示到这个页面上。person.jsp:

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAA54AAAFmCAIAAACKs9LtAAAgAElEQVR4nO3dTYsc5aLA8fo2iTjQm/ka0ZzNCIFe5QsEdczOuLQDgxjfOBsXvqxEaDyOHBAJaOQsL/fSyGXkEBnlYuKIuTejQgz0XfRbvXdNUvU83TW/Hw1npvqp6rKakP958nR1MgUAgF5IYp8AAAC0ozJtrwAAwFapTNvbAACwVSxIAACgJ6QtAAA9IW0BAOgJaQsAQE9IWwAAekLaAgDQE9IWAICekLYAAPSEtAUAoCekLQAAPSFtAQDoCWkLAEBPNErb8TAZjCaZTZPRIL9pOh4WNnVrPEyS4TjkKwIAsLmazdpORoMkXbfjYVKI3Wk6NcfDpFLuOOtVB3P+vAAAOMdq0rZZd2bbs24edTIa5Du1MLwwPzwZDVJbZod44hIGAKDPGq+1TVVoyfqEpclosIrVVZfOmrQQvU+StrUrELLDAQA4T+rTNlWKZWm7rjQnk8li6re8N6UtAACtWTtru6jPYtrO/mcyKQ3JutUMqzg961pbaQsAQKXKtG20rDVVq8tKXX6ObJmY6SDNxqlZWwAAWtPufW1X6dl81tbHyAAAaMW6tF27ZCBTppm0bTZrmw3RNWm79ka2Zm0BAM6vBmlbf1vZ6rRdX8MNFz1k0la4AgBQLuqsbXEStn7Wdu1SWwAAzrEOZ23Xpm3Jd5rVpq3VBgAA1Gg1bVPfe1tI29Fy8cF8j8loUFw4W5q2qR2ULQAAVdpbkDAeJoubgDUJ0PLFBYu0Ta/CXd1N12oEAACqtTZrOx7mKrf5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cz0nbQEA6AlpCwBAT0hbAAB6QtoCANAT0hYAgJ6QtgAA9IS0BQCgJ6QtAAA9IW0BAOgJaQsAQE9IWwAAekLaAgDQE9IWAICekLYAAPSEtAUAoCekLQAAPSFtAQDoCWkLAEBPSFsAAHpC2gIA0BPSFgCAnpC2AAD0hLQFAKAnpC0AAD3x/9dBbR10TjcIAAAAAElFTkSuQmCC" alt="" />

第一步:peson.jsp页面

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'index.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
</head>
<body>
<hr>
普通用户
<form action="${pageContext.request.contextPath}/user/register.action" method="post">
<table border="2" align="center">
<tr>
<th>姓名</th>
<td> <input type="text" name="username" value="${user.username }" /></td>
</tr>
<tr>
<th>薪水</th>
<td> <input type="text"
name="salary"
value="${!empty user.salary?user.salary:'2012'}" /> </td>
</tr>
<tr>
<th>入职时间</th>
<!--
${!empty user.hiredate?user.hiredate:'2015-4-3 12:12:12'}
表示user.hiredate不是为空的话就给他赋user.hiredate的值
如果是空的就给他赋'2015-4-3 12:12:12'这个值。
-->
<td> <input
type="text"
name="hiredate" value="${!empty user.hiredate?user.hiredate:'2015-4-3 12:12:12'} "/></td>
</tr> <tr>
<td>
<input type="submit" value="普通用户注册">
</td>
</tr>
</table> </form>
</hr>
<hr> 管理员用户
<form action="${pageContext.request.contextPath}/user/register.action" method="post">
<table border="2" align="center">
<tr>
<th>姓名</th>
<td> <input type="text" name="username" /></td>
</tr> <tr>
<th>薪水</th>
<td> <input type="text"
name="salary"
value="2012" />
</td>
</tr>
<tr>
<th>入职时间</th>
<!--
${!empty user.hiredate?user.hiredate:'2015-4-3 12:12:12'}
表示user.hiredate不是为空的话就给他赋user.hiredate的值
如果是空的就给他赋'2015-4-3 12:12:12'这个值。
-->
<td> <input
type="text"
name="hiredate" value="2015-4-3 12:12:12"/></td>
</tr> <tr>
<td>
<input type="submit" value="管理员注册">
</td>
</tr>
</table>
</form>
</hr>
</body>
</html>

第二步:编写web.xml文件

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
<display-name>SpringMvc_10day_self</display-name>
<!-- Spring提供了一个Filter专门用来解决Post提交中文的乱码问题 -->
<filter>
<filter-name>CharacterEncodingFilter</filter-name>
<filter-class>
org.springframework.web.filter.CharacterEncodingFilter
</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>CharacterEncodingFilter </filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping> <servlet>
<!--这个名字可以随便取得,但是这个名字取了之后,以后在 WEB-INF下面创建SpirngMVC的配置文件是,命名必须以这个开头, 所以这里取名叫做DispatcherServlet,那么之后的xml文件取名必须为DispatcherServlet-servlet.xml(一个字都不能差) -->
<servlet-name>DispatcherServlet</servlet-name>
<servlet-class> org.springframework.web.servlet.DispatcherServlet</servlet-class>
<!-- 通知DispatcherServlet去指定目录下找到springmvc.xml配置文件 -->
<!--
注意这里的 <param-name>contextConfigLocation</param-name>一个字母都不能有错
一旦有错就会去WEB-INF下面去找
-->
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:spring.xml</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>DispatcherServlet</servlet-name>
<url-pattern>*.action</url-pattern> </servlet-mapping> <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list>
</web-app>

第三步:编写spring.xml文件

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd"
>
<import resource="com/guigu/shen/Action8/springmvc_008.xml"/>
</beans>

第四步:编写springmvc_008.xml文件

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd"
>
<!-- 控制器(程序员)(必须配置) -->
<context:component-scan base-package="com.guigu.shen.Action8"/>
<!-- 基于注解的映射器(可选)
这个类和以前的xml方式的类不同,专门是注解用的
-->
<bean class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping"/> <!-- 基于注解的适配器(可选)
这个类和以前的xml方式的类不同,专门是注解用的
-->
<bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter"/> <!-- 视图解析器(可选)
这个类和以前的xml方式的类一样
-->
<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver"> </bean> </beans>

第五步:编写Admin和User的实体类。

Admin实体类:

package com.guigu.shen.Action8;

import java.util.Date;

/*
用户
*/
public class Admin {
private Integer id=1;
private String username;
private Double salary;
private Date hiredate; /**
*
*/
public Admin() {
}
/**
* @return the id
*/
public Integer getId() {
return id;
}
/**
* @param id the id to set
*/
public void setId(Integer id) {
this.id = id;
}
/**
* @return the username
*/
public String getUsername() {
return username;
}
/**
* @param username the username to set
*/
public void setUsername(String username) {
this.username = username;
}
/**
* @return the salary
*/
public Double getSalary() {
return salary;
}
/**
* @param salary the salary to set
*/
public void setSalary(Double salary) {
this.salary = salary;
}
/**
* @return the hiredate
*/
public Date getHiredate() {
return hiredate;
}
/**
* @param hiredate the hiredate to set
*/
public void setHiredate(Date hiredate) {
this.hiredate = hiredate;
} /* (non-Javadoc)
* @see java.lang.Object#toString()
*/
@Override
public String toString() { return this.id+this.username+this.salary+this.hiredate.toString();
} }

User的实体类:

package com.guigu.shen.Action8;

import java.util.Date;

/*
用户
*/
public class User {
private Integer id=1;
private String username;
private Double salary;
private Date hiredate; /**
*
*/
public User() {
}
/**
* @return the id
*/
public Integer getId() {
return id;
}
/**
* @param id the id to set
*/
public void setId(Integer id) {
this.id = id;
}
/**
* @return the username
*/
public String getUsername() {
return username;
}
/**
* @param username the username to set
*/
public void setUsername(String username) {
this.username = username;
}
/**
* @return the salary
*/
public Double getSalary() {
return salary;
}
/**
* @param salary the salary to set
*/
public void setSalary(Double salary) {
this.salary = salary;
}
/**
* @return the hiredate
*/
public Date getHiredate() {
return hiredate;
}
/**
* @param hiredate the hiredate to set
*/
public void setHiredate(Date hiredate) {
this.hiredate = hiredate;
} /* (non-Javadoc)
* @see java.lang.Object#toString()
*/
@Override
public String toString() { return this.id+this.username+this.salary+this.hiredate.toString();
} }

第六步:编写Action类(两个form的提交都会提交到这类里面的一个方法中):

package com.guigu.shen.Action8;

import java.text.SimpleDateFormat;
import java.util.Date; import javax.servlet.http.HttpServletRequest; import org.springframework.beans.propertyeditors.CustomDateEditor;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.ServletRequestDataBinder;
import org.springframework.web.bind.annotation.InitBinder;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
/**
*
*
请求路径可以拆分为:根模块的名字+分模块的名字
就是相当于当访问http://127.0.0.1:8080:项目名/user/register时就会进入到
registerMethod方法。
*/
@Controller
@RequestMapping(value="/user")//根模块的请求名字
public class UserAction {
/*
* 员工注册
*
*/
@RequestMapping(method=RequestMethod.POST,value="/register")//分模块的请求名字
/*
采用模型的方式(User)来收集从页面传来的参数。
方法里面的参数user和以前的参数一样会被用反射的方式去赋值。
*/
public String registerMethod(User user,Admin admin,Model model)
{
//打印出user里面的信息
System.out.println("员工的信息是"+user.toString());
//打印出Admin的信息
System.out.println("管理员的信息"+admin);
//将user和admin绑定到model对象中去。
model.addAttribute("user", user);
model.addAttribute("admin", admin);
//数据回显到person.jsp页面
return "/person.jsp";
} /**
* 自定义类型转换器
* 就是说当Date类型的数据不能得到时,会自动查找@InitBinder注解过的方法
*
*/
@InitBinder
protected void initBinder(HttpServletRequest request,ServletRequestDataBinder binder) throws Exception {
binder.registerCustomEditor(Date.class, new CustomDateEditor(new SimpleDateFormat("yyyy-MM-dd"),true));
} }

第七步:测试;

测试1:

在普通用户中输入:

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAA2wAAACgCAIAAAD/zHhUAAAR4UlEQVR4nO3dW4sc1aLA8fo2GTHQL/M1otkvIw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9d57eef658XFn1/fCZd/fn0nefm9cPHn13d2rl9/eZqb85HvvZy8/F647fDHYJO5cTU7VxhXuupy4efXd15+LzOq4hfM+e2330TklhGRANCsJiK/q/fuS1UzkRde+2w65LPXLiTJhQsXlkuqt/XSu5U/f/bahekGPnvtQnZc2+1VLFtsePr9S+9mBr37UtNuf/fdd9+JyO0jIgGgWVVEnp6ejuvdvnTh1bS4OH31wnx5+uqFS7dn31TeC3Ph1bS4qduXkku3x+Pbl4JBmU037Vpy6fY4WL/Mpdvz/ZsNu/BqevvSpdvB7k73vt7p6amI3DIiEgCanT0iGY/HInIbiUgAaFYTkf9JCyJy+4hIAGhWFZFPnjz5Fy08efJERG4ZEQkAzUojcn9///j4+OTk5D+odXJycnx8vL+/vziYffwN6ZiIBIBmpRF569att95666effnpCrZ9++umtt966devW4mD28TekYyISAJqVRuRkMnnzzTf39/evUWt/f//NN98MD+b5/vVYCREJAM2qIpIzEJHbQUQCQDMR2SERuR1EJAA0CyPyDs+tz78lHdnciPx/s+NfSQkpHkAAAAAASUVORK5CYII=" alt="" width="789" height="144" />

然后点击“普通用户注册”,成功,回显都是正确的。

测试:接下来在管理员用户表单里输入数据并提交:

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAA2sAAAFtCAIAAAAWEWXzAAAgAElEQVR4nO3dXYscZaLA8fo2yeJA38zXiGZvRgj0Vb5AUMfcGS/twCDGN/bGC1+uloXCdWRBJKCRvTycQyOHkSUyysFkR8w5GRVioM9Fv9RT71VJVVd35/djIDPVT1VXagj589RLRzMAAGgjKnvhCgAAFCktyNsAAFCktCABAKCQggQAoB0FCQBAOwoSAIB2FCQAAO0oSAAA2lGQAAC0oyABAGhHQQIA0I6CBACgHQUJAEA7ChIAgHYaFWQ8jkaTaWrRdDLKLprF49yifsXjKBrH63xHAAAazkFOJ6MojMh4HOWachYWXTyOSmW2U6+8S7P7BQBA/yoKslnepROvalZwOhllczA3PDfbOZ2MgiXzTTxxcAIA0IHG10EGsVdwUntl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BECRHLUakbXS+xnT18AbS3jNl2Q8fnJq/ww8fnHrn08ignLdfUJDrR0ECQD2yCvLo6GhU5NqZrDnIU+8PK4w+cy304plrWe905tpodO3MZED2xoIgOHNt+P6p8LBT7w+vnTlzbTQavn8q512ijo6OFOSaUZAAUI+TFOR6U5DrR0ECQD1yCvK/3mwKcv0oSACoR1ZBPn369D/fbE+fPlWQa0ZBAkA9UgtyZ2fn4ODg8PDwP95Uh4eHBwcHOzs786PUxi+HmilIAKhHakFevnz5ypUrDx48ePqmevDgwZUrVy5fvjw/Sm38cqiZggSAeqQW5Hg8vnTp0s7Ozvk31c7OzqVLl8JHabm/FhqhIAGgHlkFSZiCXA8KEgDqoSDLUJDrQUECQD3CBXmLbG3+kqiJggSAesgj3hwKEgDqoSB5cyhIAKjHrVu3vvzyy3Pwxmj771w9FCQAbZKPvGna/jtXDwUJAEA1ChIAgGoUJAAA1ShIAACqUZAAAFSjIAEAqEZBAgBQjYIEAKAaBQkAQDUKEgCAahQkAADVKEgAAKpRkAAAVKMgAQCoRkECAFCNggQAoBoFCQBANQoSAIBqFCQAANX8P/FjwCfUIlilAAAAAElFTkSuQmCC" alt="" />

很明显出问题了,原本应该在管理员用户表单回显的数据,却跑到了普通用户表里面。

这个问题在下一篇博客中解决。

16SpringMvc_在业务控制方法中写入User,Admin多个模型收集参数——引出问题的更多相关文章

  1. 在业务控制方法中写入Request,Response等传统web参数

    可以在业务控制方法中书写传统web参数,这种方式我们不提倡,耦合了 @Controller @RequestMapping(value="/user") public class ...

  2. 14SpringMvc_在业务控制方法中写入HttpServletRequest,HttpServletResponse等传统web参数(这个知识点知道就好了,不推荐这么去做)

    这篇文章解决的问题是怎么在业务方法里面引入我们熟悉的HttpServletRequest和HttpServletRespon? 答案:这种引入传统的web参数的做法不推荐去做,因为这么做会实行高度耦合 ...

  3. 15SpringMvc_在业务控制方法中写入模型变量收集参数,且使用@InitBind来解决字符串转日期类型

    之前第12篇文章中提到过在业务控制方法中写入普通变量收集参数的方式,也提到了这种凡方式的弊端(参数很多怎么办),所以这篇文章讲的是在业务控制方法中写入模型变量来收集参数.本文的案例实现的功能是,在注册 ...

  4. 在业务控制方法中写入User,Admin多个模型收集参数

    1)  可以在业务控制方法中书写1个模型来收集客户端的参数 2)  模型中的属性名必须和客户端参数名一一对应 3)  这里说的模型不是Model对象,Model是向视图中封装的数据 @Controll ...

  5. 17SpringMvc_在业务控制方法中写入包装User的模型来收集参数——解决问题

    在解决问题之前,我要说明一下jsp页面上填入信息,一个用户的信息比如用户的名字,用户的电话,用户的手机等等,在这个jsp页面上填好信息后,转到有个action处理这个信息.原理是什么? 在jsp页面上 ...

  6. 在业务控制方法中写入包装User的模型来收集参数

    可以在业务控制方法中书写0个或多个模型来收集客户端的参数 1)  如果多个模型中有相同的属性时,可以用user.name或admin.name来收集客户端参数 2)  用一个新的模型将User和Adm ...

  7. 12SpringMvc_在业务控制方法中写入普通变量收集参数

    这篇文章讲的是jsp页面不是会传一些参数到Action中,那么Action怎么去接受这个数据呢? 方案: 案例结构如下:

  8. 在业务控制方法中写入模型变量收集参数,且使用@InitBind来解决字符串转日期类型

    1)  在默认情况下,springmvc不能将String类型转成java.util.Date类型,所有我们只能在Action 中自定义类型转换器 <form action="${pa ...

  9. 19SpringMvc_在业务控制方法中收集List集合中包含JavaBean参数

    本文要实现的功能是给一张表单:

随机推荐

  1. SAP debug的几种方式

         1. 直接在程序中设断点 这种方式想必大家都知道了,在se38里面打上breakpoint,程序运行到该处即进入debug模式   2.background Job的debug 进入SM37 ...

  2. 404 & 401 Errors with the App Management Service

    from:http://blogs.technet.com/b/sharepoint_-_inside_the_lines/archive/2013/06/23/404-amp-401-errors- ...

  3. linq 动态组合条件

    http://www.albahari.com/nutshell/predicatebuilder.aspx Dynamically Composing Expression Predicates S ...

  4. 基本完成了一个SEGY扫描程序

    利用Seismic.NET编写了一个SEG-Y文件的扫描程序,可以自动判断道头字中主测线号.横测线号.X坐标和Y坐标的位置,自动快速扫描地震数据体中的拐点坐标.10GB多的数据体几十秒全部扫描完成! ...

  5. setSupportActionBar(toolbar)导致程序崩溃闪退

    最近在做一个项目,使用了第三方的开源项目,主要是想实现android5.0之后推出的MaterialDesign的风格,但是代码已经写好了,发现一运行就闪退,所以就开始debug,发现问题出现在 To ...

  6. 多线程基础 (八)NSOperation相关

    额外的参考学习可以学习:http://www.cnblogs.com/YouXianMing/p/3707403.html 1.NSOperation简介   NSOperation的作用 配合使用N ...

  7. Burp Suite安装及详细使用教程-Intruder模块详解

    01 介绍 安装要求: Java 的V1.5 + 安装( 推荐使用最新的JRE ), 可从这里免费 http://java.sun.com/j2se/downloads.html Burp Suite ...

  8. sql server中游标

    参考:http://blog.csdn.net/luminji/article/details/5130004 利用SQL Server游标修改数据库中的数据 SQL Server中的UPDATE语句 ...

  9. Effective Java 14 In public classes, use accessor methods, not public fields

    Principle To offer the benefits of encapsulation you should always expose private field with public ...

  10. for循环练习题

    ■■■■■■■■■■■■■■■■■■■■■■■■■ 代码: <script> for(i=0;i<5;i++) { for(j=0;j<5;j++) { document.wr ...