SpringMVC+Spring+HIbernate 简单增删改查实例


这里写图片描述


SpringMVC+Spring+HIbernate 简单增删改查实例

HIbernate配置mysql数据库的方式 和 Structs+spring+HIbernate 是一样的。 
可以理解为SpringMVC 把 Structs2 替代了,SpringMVC 中的 Controller 对应 Structs2 中的 Action,相对来说更加的简单,毕竟少了一个配置文件struts.xml,这个实例中连xx.hbm.xml都用注解的方式代替了 
对应页面回显数据,Struts2中,用值栈、session、Request等,SpringMVC中也可以使用Servlet API,session等都可以用,可以用 Map、Model等来回显数据 
页面上可以使用JSTL,Struts的 s标签就没了

<s:iterator value="list" var="d">
   
  • 1
<c:forEach var="p" items="${requestScope.personlist }">
   
  • 1

删除和修改都是url中传入id的参数

http://localhost:8080/../doupdate?id=402881e958de29980158de2aa5440000
   
  • 1

项目结构

这里写图片描述 
这里写图片描述

除了spring和HIbernate基本包还需要加 jstl标签库的jar包 
jstl.jar standard.jar

HIbernate c3p0 jar包, 
c3p0-0.9.2.1.jar hibernate-c3p0-4.3.11.Final.jar mchange-commons-java-0.2.3.4.jar 3个 
对应在 hibernate-release-4.3.11.Final\lib\optional\c3p0目录下

mysql数据库连接的jar包 
mysql-connector-java-5.1.40-bin.jar

jar包在源码里有

没有使用各层的接口

这里写图片描述

版本信息


   
  1. Eclipse版本 Neon .1 a Release ( 4.6 .1)
  2. Spring 4.3 .4
  3. Hibernate 4.3 .11
  4. Tomcat 7.0
  5. JDK 1.8
  6. 数据库 MySQL5 .7 .12
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6

源码下载:http://download.csdn.net/detail/peng_hong_fu/9706477

部分源代码

业务层和Dao层没有使用接口(解耦等)

web.xml

web.xml


   
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <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_3_0.xsd" id="WebApp_ID" version="3.0">
  3. <display-name>SpringMVC_Spring_Hibernate </display-name>
  4. <!-- 防止中文参数乱码 放在前面 -->
  5. <filter>
  6. <filter-name>SetCharacterEncoding </filter-name>
  7. <filter-class>org.springframework.web.filter.CharacterEncodingFilter </filter-class>
  8. <init-param>
  9. <param-name>encoding </param-name>
  10. <param-value>UTF-8 </param-value>
  11. </init-param>
  12. <init-param>
  13. <param-name>forceEncoding </param-name>
  14. <param-value>true </param-value>
  15. <!-- 强制进行转码 -->
  16. </init-param>
  17. </filter>
  18. <filter-mapping>
  19. <filter-name>SetCharacterEncoding </filter-name>
  20. <url-pattern>/* </url-pattern>
  21. </filter-mapping>
  22. <!-- spring 配置Listener-->
  23. <!-- needed for ContextLoaderListener -->
  24. <context-param>
  25. <param-name>contextConfigLocation </param-name>
  26. <param-value>classpath:/resources/beans.xml </param-value>
  27. </context-param>
  28. <!-- Bootstraps the root web application context before servlet initialization -->
  29. <listener>
  30. <listener-class>org.springframework.web.context.ContextLoaderListener </listener-class>
  31. </listener>
  32. <!-- springmvc配置dispatcherServlet -->
  33. <!-- The front controller of this Spring Web application, responsible for handling all application requests -->
  34. <servlet>
  35. <servlet-name>springDispatcherServlet </servlet-name>
  36. <servlet-class>org.springframework.web.servlet.DispatcherServlet </servlet-class>
  37. <init-param>
  38. <param-name>contextConfigLocation </param-name>
  39. <param-value>classpath:/resources/springmvc.xml </param-value>
  40. </init-param>
  41. <load-on-startup>1 </load-on-startup>
  42. </servlet>
  43. <!-- Map all requests to the DispatcherServlet for handling -->
  44. <servlet-mapping>
  45. <servlet-name>springDispatcherServlet </servlet-name>
  46. <url-pattern>/ </url-pattern>
  47. </servlet-mapping>
  48. </web-app>
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56

实体类

Person.java


   
  1. package com.jxust.svsh.entity;
  2. import javax.persistence.Column;
  3. import javax.persistence.Entity;
  4. import javax.persistence.GeneratedValue;
  5. import javax.persistence.Id;
  6. import javax.persistence.Table;
  7. import org.hibernate.annotations.GenericGenerator;
  8. /**
  9. * 个人信息实体类
  10. * 注解方式配置对应数据表
  11. * @author Peng
  12. * @Date 2016年12月8日下午2:54:52
  13. */
  14. @Entity
  15. @Table(name = "person")
  16. public class Person {
  17. private String id; // 主键id
  18. private String name; // 姓名
  19. private String idCard; // 身份证号
  20. private String phone; // 手机号
  21. private String address; // 地址
  22. public Person () {
  23. super();
  24. }
  25. public Person (String name, String idCard, String phone, String address) {
  26. super();
  27. this.name = name;
  28. this.idCard = idCard;
  29. this.phone = phone;
  30. this.address = address;
  31. }
  32. @Id
  33. @Column(name = "id", nullable = false, unique = true)
  34. @GenericGenerator(name = "generator", strategy = "uuid")
  35. @GeneratedValue(generator = "generator")
  36. public String getId () {
  37. return id;
  38. }
  39. public void setId (String id) {
  40. this.id = id;
  41. }
  42. @Column(name = "name", nullable = false, length = 32)
  43. public String getName () {
  44. return name;
  45. }
  46. public void setName (String name) {
  47. this.name = name;
  48. }
  49. @Column(name = "idCard", nullable = false, length = 32)
  50. public String getIdCard () {
  51. return idCard;
  52. }
  53. public void setIdCard (String idCard) {
  54. this.idCard = idCard;
  55. }
  56. @Column(name = "phone", nullable = false, length = 32)
  57. public String getPhone () {
  58. return phone;
  59. }
  60. public void setPhone (String phone) {
  61. this.phone = phone;
  62. }
  63. @Column(name = "address", nullable = false, length = 32)
  64. public String getAddress () {
  65. return address;
  66. }
  67. public void setAddress (String address) {
  68. this.address = address;
  69. }
  70. @Override
  71. public String toString () {
  72. return "Person [id=" + id + ", name=" + name + ", idCard=" + idCard + ", phone=" + phone + ", address="
  73. + address + "]";
  74. }
  75. }
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92

Service业务层

PersonService.java


   
  1. package com.jxust.svsh.service;
  2. import java.util.List;
  3. import org.springframework.beans.factory.annotation.Autowired;
  4. import org.springframework.stereotype.Service;
  5. import org.springframework.transaction.annotation.Transactional;
  6. import com.jxust.svsh.dao.PersonDAO;
  7. import com.jxust.svsh.entity.Person;
  8. @Transactional
  9. @Service
  10. public class PersonService {
  11. @Autowired
  12. public PersonDAO personDAO;
  13. /**
  14. * 添加
  15. * @param person
  16. */
  17. public void addPerson (Person person) {
  18. personDAO.addPerson(person);
  19. }
  20. /**
  21. * 根据id查询
  22. * @param id
  23. * @return
  24. */
  25. public Person getPersonById (String id){
  26. return personDAO.getPersonById(id);
  27. }
  28. /**
  29. * 更新
  30. * @param person
  31. */
  32. public void updatePerson (Person person) {
  33. personDAO.updatePerson(person);
  34. }
  35. /**
  36. * 删除
  37. * @param id
  38. */
  39. public void deletePersonById (String id) {
  40. personDAO.deletePersonById(id);
  41. }
  42. /**
  43. * 查询所有
  44. * @return
  45. */
  46. public List<Person> getPersons () {
  47. return personDAO.getPersons();
  48. }
  49. }
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56

Dao层

PersonDAO.java


   
  1. package com.jxust.svsh.dao;
  2. import java.util.List;
  3. import javax.annotation.Resource;
  4. import org.hibernate.Session;
  5. import org.hibernate.SessionFactory;
  6. import org.springframework.stereotype.Repository;
  7. import com.jxust.svsh.entity.Person;
  8. @Repository
  9. public class PersonDAO {
  10. @Resource
  11. private SessionFactory sessionFactory;
  12. private Session getSession () {
  13. return sessionFactory.getCurrentSession();
  14. }
  15. /**
  16. * 根据id查询
  17. * @param id
  18. * @return
  19. */
  20. public Person getPersonById (String id) {
  21. return (Person) this.getSession().createQuery( "from Person where id=?").setParameter( 0, id).uniqueResult();
  22. }
  23. /**
  24. * 添加
  25. * @param person
  26. */
  27. public void addPerson (Person person) {
  28. this.getSession().save(person);
  29. }
  30. /**
  31. * 更新
  32. * @param person
  33. */
  34. public void updatePerson (Person person) {
  35. this.getSession().update(person);
  36. }
  37. /**
  38. * 删除
  39. * @param id
  40. */
  41. public void deletePersonById (String id) {
  42. this.getSession().createQuery( "delete Person where id=?").setParameter( 0, id).executeUpdate();
  43. }
  44. /**
  45. * 查询所有
  46. * @return
  47. */
  48. @SuppressWarnings( "unchecked")
  49. public List<Person> getPersons () {
  50. return this.getSession().createCriteria(Person.class).list();
  51. }
  52. }
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59

Controller

PersonController.java


   
  1. package com.jxust.svsh.controller;
  2. import java.util.Map;
  3. import org.springframework.beans.factory.annotation.Autowired;
  4. import org.springframework.stereotype.Controller;
  5. import org.springframework.ui.Model;
  6. import org.springframework.web.bind.annotation.RequestMapping;
  7. import org.springframework.web.bind.annotation.RequestParam;
  8. import org.springframework.web.bind.annotation.SessionAttributes;
  9. import com.jxust.svsh.entity.Person;
  10. import com.jxust.svsh.service.PersonService;
  11. /**
  12. * controller
  13. * @author Peng
  14. * @Date 2016年12月9日上午11:25:40
  15. */
  16. @SessionAttributes(value = "username")
  17. @Controller
  18. @RequestMapping(value = "/person")
  19. public class PersonController {
  20. @Autowired
  21. public PersonService personService;
  22. /**
  23. * 登录请求,失败返回error.jsp
  24. *
  25. * @param username
  26. * @param password
  27. * @return
  28. */
  29. @RequestMapping( "/login")
  30. public String dologin (String username, String password, Map<String, Object> map) {
  31. if (username.equals( "admin") && password.equals( "admin")) {
  32. map.put( "username", username); //存放在request请求域中
  33. /**
  34. * 类上加上@SessionAttributes({"username"}) 同时也会存放在 session域中
  35. * @SessionAttributes 除了可以通过属性名指定需要存放到会话中的属性外(使用的是value属性值)
  36. * 还可以通过模型属性的对象类型指定哪些模型属性需要放到会话中(实际上使用的是types属性值),
  37. */
  38. return "frame";
  39. }
  40. return "error";
  41. }
  42. /**
  43. * 保存添加的数据
  44. *
  45. * @param person
  46. * @return
  47. */
  48. @RequestMapping(value = "/saveperson")
  49. public String saveperson (Person person) {
  50. personService.addPerson(person);
  51. return "redirect:main";
  52. }
  53. /**
  54. * 跳转到添加页面
  55. * savepage.jsp
  56. * @return
  57. */
  58. @RequestMapping(value = "/addperson")
  59. public String saveperson () {
  60. return "savepage";
  61. }
  62. /**
  63. * 删除一条数据
  64. *
  65. * @param id
  66. * @return
  67. */
  68. @RequestMapping(value = "/deletePersonById")
  69. public String deletePersonById (@ RequestParam (value = "id" ) String id) {
  70. System.out.println( "删除单个");
  71. personService.deletePersonById(id);
  72. return "redirect:main";
  73. }
  74. /**
  75. * 跳转到更新页面,回显数据
  76. * editpage.jsp
  77. * @param id
  78. * @param model 使用的Model保存回显数据
  79. * @return
  80. */
  81. @RequestMapping(value = "/doupdate")
  82. public String doupdate (@ RequestParam (value = "id" ) String id, Model model) {
  83. model.addAttribute( "person", personService.getPersonById(id));
  84. return "editpage";
  85. }
  86. /**
  87. * 更新数据
  88. *
  89. * @param person
  90. * @return
  91. */
  92. @RequestMapping(value = "/updateperson")
  93. public String updateperson (Person person) {
  94. System.out.println(person.toString());
  95. personService.updatePerson(person);
  96. return "redirect:main";
  97. }
  98. /**
  99. * 查询所有人员信息
  100. *
  101. * @param map 使用的是map保存回显数据
  102. * @return
  103. */
  104. @RequestMapping(value = "/main")
  105. public String mian (Map<String, Object> map) {
  106. map.put( "personlist", personService.getPersons());
  107. /*遍历集合,查看查询到的数据
  108. * List<Person> lists = personService.getPersons();
  109. * Iterator<Person> it = lists.iterator();
  110. * while(it.hasNext()){
  111. * Person p =it.next();
  112. * System.out.println(p.toString());
  113. * }
  114. */
  115. return "main";
  116. }
  117. }
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130

xml等配置文件

springmvc.xml


   
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <beans xmlns="http://www.springframework.org/schema/beans"
  3. xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
  4. xmlns:aop = "http://www.springframework.org/schema/aop"
  5. xmlns:context = "http://www.springframework.org/schema/context"
  6. xmlns:mvc = "http://www.springframework.org/schema/mvc"
  7. xsi:schemaLocation = "http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
  8. http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.3.xsd
  9. http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.3.xsd
  10. http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-4.3.xsd" >
  11. <!-- 配置自动扫描的包 -->
  12. <context:component-scan base-package="com.jxust">
  13. <context:include-filter type="annotation" expression="org.springframework.stereotype.Controller"/>
  14. <context:exclude-filter type="annotation" expression="org.springframework.stereotype.Service"/>
  15. <context:exclude-filter type="annotation" expression="org.springframework.stereotype.Repository"/>
  16. </context:component-scan>
  17. <!-- 配置视图解析器 如何把 handler 方法返回值解析为实际的物理视图 -->
  18. <bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
  19. <property name="prefix" value="/WEB-INF/views/"> </property>
  20. <property name="suffix" value=".jsp"> </property>
  21. </bean>
  22. <!-- 静态资源交给默认的Servlet-->
  23. <mvc:default-servlet-handler/>
  24. <mvc:annotation-driven> </mvc:annotation-driven>
  25. </beans>
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30

jdbc.properties


   
  1. jdbc .driverClass= com .mysql .jdbc .Driver
  2. jdbc .url= jdbc: mysql:/ / 127.0 .0 .1 : 3306 /ssh_person?characterEncoding=utf8&useSSL= true
  3. jdbc .username=root
  4. jdbc .password=root
  • 1
  • 2
  • 3
  • 4

beans.xml


   
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <beans xmlns="http://www.springframework.org/schema/beans"
  3. xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
  4. xmlns:aop = "http://www.springframework.org/schema/aop"
  5. xmlns:context = "http://www.springframework.org/schema/context"
  6. xmlns:tx = "http://www.springframework.org/schema/tx"
  7. xsi:schemaLocation = "http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
  8. http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.3.xsd
  9. http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.3.xsd
  10. http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.3.xsd " >
  11. <context:component-scan base-package="com.jxust">
  12. <context:exclude-filter type="annotation"
  13. expression = "org.springframework.stereotype.Controller" />
  14. </context:component-scan>
  15. <!-- 引入外部的属性文件 -->
  16. <context:property-placeholder location="classpath:/resources/jdbc.properties"/>
  17. <!-- 配置c3p0 连接池 -->
  18. <bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource">
  19. <property name="driverClass" value="${jdbc.driverClass}"</span></span></span><span class="hljs-tag">/&gt;</span></span> </div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="23"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">property</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">name</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"jdbcUrl"</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">value</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"${jdbc.url}"/>
  20. <property name="user" value="${jdbc.username}"</span></span></span><span class="hljs-tag">/&gt;</span></span> </div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="25"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">property</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">name</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"password"</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">value</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"${jdbc.password}"/>
  21. </bean>
  22. <!-- 配置hibernate 相关属性-->
  23. <bean id="sessionFactory" class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">
  24. <!-- 注入连接池-->
  25. <property name="dataSource" ref="dataSource"> </property>
  26. <!-- hibernate 的相关属性 -->
  27. <property name="hibernateProperties" >
  28. <props>
  29. <prop key="hibernate.show_sql">true </prop>
  30. <prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect </prop>
  31. <prop key="hibernate.format_sql">true </prop>
  32. <!--
  33. 它包含4个属性:
  34. * create : 会根据你的model类来生成表,但是每次运行都会删除上一次的表,重新生成表,哪怕2次没有任何改变
  35. * create-drop : 根据model类生成表,但是sessionFactory一关闭,表就自动删除
  36. * update : 最常用的属性,也根据model类生成表,即使表结构改变了,表中的行仍然存在,不会删除以前的行
  37. * validate : 只会和数据库中的表进行比较,不会创建新表,但是会插入新值
  38. -->
  39. <prop key="hibernate.hbm2ddl.auto">update </prop>
  40. </props>
  41. </property>
  42. <!-- hibernate 映射文件 设置为自动扫描包目录-->
  43. <property name="packagesToScan">
  44. <list>
  45. <value>com.jxust.svsh.entity </value>
  46. </list>
  47. </property>
  48. </bean>
  49. <!-- 配置事务管理器 -->
  50. <bean id="transactionManager" class="org.springframework.orm.hibernate4.HibernateTransactionManager">
  51. <property name="sessionFactory" ref="sessionFactory"> </property>
  52. </bean>
  53. <!-- 开启事务注解 -->
  54. <tx:annotation-driven transaction-manager="transactionManager" />
  55. </beans>
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62

笔记.txt


   
  1. C:\Users\Peng>mysql -uroot -proot
  2. ..
  3. ..
  4. mysql> use ssh _person;//要先创建数据库
  5. Database changed
  6. mysql> desc person;
  7. +---------+--------------+------+-----+---------+-------+
  8. | Field | Type | Null | Key | Default | Extra |
  9. +---------+--------------+------+-----+---------+-------+
  10. | id | varchar(255) | NO | PRI | NULL | |
  11. | address | varchar(255) | YES | | NULL | |
  12. | idCard | varchar(32) | NO | | NULL | |
  13. | name | varchar(32) | NO | | NULL | |
  14. | phone | varchar(32) | NO | | NULL | |
  15. +---------+--------------+------+-----+---------+-------+
  16. 5 rows in set (0.00 sec)
  17. mysql> select * from person;
  18. +----------------------------------+----------+-----------+------+---------+
  19. | id | address | idCard | name | phone |
  20. +----------------------------------+----------+-----------+------+---------+
  21. | 402881e958de29980158de2aa5440000 | 江西南昌 | 20020020 | 天天 | 1008611 |
  22. | 402881e958deb56b0158deb6a6200000 | 江西上饶 | 20020025 | 霍霍 | 1008614 |
  23. | 402881e958dece620158decf2e3b0000 | 湖南长沙 | 230000032 | 胖子 | 1008677 |
  24. +----------------------------------+----------+-----------+------+---------+
  25. 3 rows in set ( 0. 00 sec)
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26

jsp页面

index.jsp


   
  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding= "UTF-8" %>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  7. <title>登陆 </title>
  8. <link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/style/reset.css"</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="10"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">link</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">type</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"text/css"</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">rel</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"stylesheet"</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">href</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"${pageContext.request.contextPath}/style/main.css">
  9. <!--[if IE 6]>
  10. <script type="text/javascript" src="js/DD_belatedPNG_0.0.8a-min.js"></script>
  11. <script type="text/javascript" src="js/ie6Fixpng.js"></script>
  12. <![endif]-->
  13. </head>
  14. <body>
  15. <div class="headerBar">
  16. <div class="logoBar login_logo">
  17. <div class="comWidth">
  18. <div class="logo fl">
  19. <a href="#"> <img src="${pageContext.request.contextPath}/images/logo.jpg"</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">alt</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"慕课网"</span></span></span><span class="hljs-tag">&gt;</span></span><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">a</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="23"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">div</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="24"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">h3</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">class</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"welcome_title"</span></span></span><span class="hljs-tag">&gt;</span></span>欢迎登陆<span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">h3</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="25"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">div</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="26"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">div</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="27"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">div</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="28"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> </div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="29"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">form</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">action</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"person/login"</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">method</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"post"</span></span></span><span class="hljs-tag"> &gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="30"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">div</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">class</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"loginBox"</span></span></span><span class="hljs-tag">&gt;</span></span> </div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="31"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> </div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="32"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">div</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">class</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"login_cont"</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="33"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">ul</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">class</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"login"</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="34"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">li</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">class</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"l_tit"</span></span></span><span class="hljs-tag">&gt;</span></span>用户名<span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">li</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="35"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">li</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">class</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"mb_10"</span></span></span><span class="hljs-tag">&gt;</span></span><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">input</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">type</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"text"</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">name</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"username"</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">class</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"login_input user_icon"</span></span></span><span class="hljs-tag">&gt;</span></span><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">li</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="36"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">li</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">class</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"l_tit"</span></span></span><span class="hljs-tag">&gt;</span></span>密码<span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">li</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="37"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">li</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">class</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"mb_10"</span></span></span><span class="hljs-tag">&gt;</span></span><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">input</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">type</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"password"</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">name</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"password"</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">class</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"login_input user_icon"</span></span></span><span class="hljs-tag">&gt;</span></span><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">li</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="38"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> </div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="39"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">li</span></span></span><span class="hljs-tag">&gt;</span></span><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">input</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">type</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"submit"</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">value</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">""</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">class</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"login_btn"</span></span></span><span class="hljs-tag">&gt;</span></span><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">li</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="40"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">ul</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="41"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">div</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">class</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"login_partners"</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="42"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">p</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">class</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"l_tit"</span></span></span><span class="hljs-tag">&gt;</span></span>使用合作方账号登陆网站<span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">p</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="43"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">ul</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">class</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"login_list clearfix"</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="44"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">li</span></span></span><span class="hljs-tag">&gt;</span></span><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">a</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">href</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"#"</span></span></span><span class="hljs-tag">&gt;</span></span>QQ<span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">a</span></span></span><span class="hljs-tag">&gt;</span></span><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">li</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="45"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">li</span></span></span><span class="hljs-tag">&gt;</span></span><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">span</span></span></span><span class="hljs-tag">&gt;</span></span>|<span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">span</span></span></span><span class="hljs-tag">&gt;</span></span><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">li</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="46"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">li</span></span></span><span class="hljs-tag">&gt;</span></span><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">a</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">href</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"#"</span></span></span><span class="hljs-tag">&gt;</span></span>网易<span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">a</span></span></span><span class="hljs-tag">&gt;</span></span><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">li</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="47"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">li</span></span></span><span class="hljs-tag">&gt;</span></span><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">span</span></span></span><span class="hljs-tag">&gt;</span></span>|<span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">span</span></span></span><span class="hljs-tag">&gt;</span></span><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">li</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="48"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">li</span></span></span><span class="hljs-tag">&gt;</span></span><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">a</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">href</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"#"</span></span></span><span class="hljs-tag">&gt;</span></span>新浪微博<span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">a</span></span></span><span class="hljs-tag">&gt;</span></span><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">li</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="49"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">li</span></span></span><span class="hljs-tag">&gt;</span></span><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">span</span></span></span><span class="hljs-tag">&gt;</span></span>|<span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">span</span></span></span><span class="hljs-tag">&gt;</span></span><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">li</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="50"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">li</span></span></span><span class="hljs-tag">&gt;</span></span><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">a</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">href</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"#"</span></span></span><span class="hljs-tag">&gt;</span></span>腾讯微薄<span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">a</span></span></span><span class="hljs-tag">&gt;</span></span><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">li</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="51"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">li</span></span></span><span class="hljs-tag">&gt;</span></span><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">span</span></span></span><span class="hljs-tag">&gt;</span></span>|<span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">span</span></span></span><span class="hljs-tag">&gt;</span></span><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">li</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="52"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">li</span></span></span><span class="hljs-tag">&gt;</span></span><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">a</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">href</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"#"</span></span></span><span class="hljs-tag">&gt;</span></span>新浪微博<span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">a</span></span></span><span class="hljs-tag">&gt;</span></span><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">li</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="53"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">li</span></span></span><span class="hljs-tag">&gt;</span></span><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">span</span></span></span><span class="hljs-tag">&gt;</span></span>|<span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">span</span></span></span><span class="hljs-tag">&gt;</span></span><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">li</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="54"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">li</span></span></span><span class="hljs-tag">&gt;</span></span><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">a</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">href</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"#"</span></span></span><span class="hljs-tag">&gt;</span></span>腾讯微薄<span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">a</span></span></span><span class="hljs-tag">&gt;</span></span><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">li</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="55"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">ul</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="56"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">div</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="57"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">div</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="58"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> </div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="59"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">div</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="60"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">form</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="61"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> </div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="62"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">div</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">class</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"hr_25"</span></span></span><span class="hljs-tag">&gt;</span></span><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">div</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="63"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">div</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">class</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"footer"</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="64"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">p</span></span></span><span class="hljs-tag">&gt;</span></span><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">a</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">href</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"#"</span></span></span><span class="hljs-tag">&gt;</span></span>慕课简介<span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">a</span></span></span><span class="hljs-tag">&gt;</span></span><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">i</span></span></span><span class="hljs-tag">&gt;</span></span>|<span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">i</span></span></span><span class="hljs-tag">&gt;</span></span><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">a</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">href</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"#"</span></span></span><span class="hljs-tag">&gt;</span></span>慕课公告<span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">a</span></span></span><span class="hljs-tag">&gt;</span></span><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">i</span></span></span><span class="hljs-tag">&gt;</span></span>|<span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">i</span></span></span><span class="hljs-tag">&gt;</span></span> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">a</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">href</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"#"</span></span></span><span class="hljs-tag">&gt;</span></span>招纳贤士<span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">a</span></span></span><span class="hljs-tag">&gt;</span></span><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">i</span></span></span><span class="hljs-tag">&gt;</span></span>|<span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">i</span></span></span><span class="hljs-tag">&gt;</span></span><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">a</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">href</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"#"</span></span></span><span class="hljs-tag">&gt;</span></span>联系我们<span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">a</span></span></span><span class="hljs-tag">&gt;</span></span><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">i</span></span></span><span class="hljs-tag">&gt;</span></span>|<span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">i</span></span></span><span class="hljs-tag">&gt;</span></span>客服热线:400-675-1234<span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">p</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="65"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">p</span></span></span><span class="hljs-tag">&gt;</span></span>Copyright &amp;copy; 2006 - 2014 慕课版权所有&amp;nbsp;&amp;nbsp;&amp;nbsp;京ICP备09037834号&amp;nbsp;&amp;nbsp;&amp;nbsp;京ICP证B1034-8373号&amp;nbsp;&amp;nbsp;&amp;nbsp;某市公安局XX分局备案编号:123456789123<span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">p</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="66"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">p</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">class</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"web"</span></span></span><span class="hljs-tag">&gt;</span></span><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">a</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">href</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"#"</span></span></span><span class="hljs-tag">&gt;</span></span><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">img</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">src</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"${pageContext.request.contextPath}/images/webLogo.jpg" alt="logo"> </a> <a href="#"> <img src="${pageContext.request.contextPath}/images/webLogo.jpg"</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">alt</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"logo"</span></span></span><span class="hljs-tag">&gt;</span></span><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">a</span></span></span><span class="hljs-tag">&gt;</span></span><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">a</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">href</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"#"</span></span></span><span class="hljs-tag">&gt;</span></span><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">img</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">src</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"${pageContext.request.contextPath}/images/webLogo.jpg" alt="logo"> </a> <a href="#"> <img src="${pageContext.request.contextPath}/images/webLogo.jpg" alt="logo"> </a> </p>
  20. </div>
  21. </body>
  22. </html>
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70

frame.jsp包含top.jsp 、right.jsp和left.jsp 3个页面

frame.jsp


   
  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding= "UTF-8" %>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  7. <title>员工管理系统 </title>
  8. </head>
  9. <frameset rows="80,*">
  10. <frame name="top"
  11. src = "${pageContext.request.contextPath}/frame/top.jsp"</span></span></span><span class="hljs-tag">&gt;</span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="13"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">frameset</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">cols</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"150,*"</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">id</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"main"</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="14"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">frame</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">src</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"${pageContext.request.contextPath}/frame/left.jsp" >
  12. <frame name="right"
  13. src = "${pageContext.request.contextPath}/frame/right.jsp" >
  14. </frameset>
  15. </frameset>
  16. </html>
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20

top.jsp


   
  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding= "UTF-8" %>
  3. <%
  4. String path = request .getContextPath();
  5. String basePath = request .getScheme()+ "://" + request .getServerName()+ ":" + request .getServerPort()+path+ "/" ;
  6. %>
  7. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  8. <html>
  9. <head>
  10. <style type="text/css">
  11. .div1 { margin-top:50px; margin-left:600px; font-size:14px; color:white }
  12. </style>
  13. </head>
  14. <body bgcolor="#0099FF">
  15. <div class="div1">
  16. 欢迎您: ${sessionScope.username}
  17. </div>
  18. </body>
  19. </html>
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19

right.jsp


   
  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding= "UTF-8" %>
  3. <%
  4. String path = request .getContextPath();
  5. String basePath = request .getScheme()+ "://" + request .getServerName()+ ":" + request .getServerPort()+path+ "/" ;
  6. %>
  7. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  8. <html>
  9. <head>
  10. </head>
  11. <body bgColor=#DDF0FB>
  12. </body>
  13. </html>
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13

left.jsp


   
  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding= "UTF-8" %>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  4. <html>
  5. <head>
  6. <link href="dtree.css" rel="stylesheet" type="text/css">
  7. <script type="text/javascript" src="dtree.js"> </script>
  8. </head>
  9. <body bgColor=#DDF0FB leftMargin=0 topMargin=0 marginwidth="0" marginheight="0">
  10. <table width="90%" border="0" cellspacing="1" cellpadding="2" align="center">
  11. <div class="dtree">
  12. <script type="text/javascript">
  13. d= new dTree( 'd' );
  14. d.add( '01' , '-1' , '信息管理系统' );
  15. d.add( '0101' , '01' , '人员管理' );
  16. d.add( '010101' , '0101' , '人员列表' , '${pageContext.request.contextPath}/person/main'</span></span></span><span class="javascript">,</span><span class="hljs-string" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="javascript"><span class="hljs-string">''</span></span></span><span class="javascript">,</span><span class="hljs-string" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="javascript"><span class="hljs-string">'right'</span></span></span><span class="javascript">);</span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="19"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> </div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="20"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> d.add(<span class="hljs-string" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="javascript"><span class="hljs-string">'010102'</span></span></span><span class="javascript">,</span><span class="hljs-string" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="javascript"><span class="hljs-string">'0101'</span></span></span><span class="javascript">,</span><span class="hljs-string" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="javascript"><span class="hljs-string">'新增人员'</span></span></span><span class="javascript">,</span><span class="hljs-string" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="javascript"><span class="hljs-string">'${pageContext.request.contextPath}/person/addperson' , '' , 'right' );
  17. document.write(d);
  18. </script>
  19. </div>
  20. </table>
  21. </body>
  22. </html>
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28

main.jsp


   
  1. <%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8"%>
  2. <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
  3. <%
  4. String path = request .getContextPath();
  5. String basePath = request .getScheme()+ "://" + request .getServerName()+ ":" + request .getServerPort()+path+ "/" ;
  6. %>
  7. <html>
  8. <head>
  9. <style type="text/css">
  10. .table1 {
  11. border:1px solid #ddd ;
  12. width:900px ;
  13. }
  14. thead {
  15. background-color:lightblue ;
  16. }
  17. </style>
  18. </head>
  19. <body>
  20. <table border="0" width="900px">
  21. <tr>
  22. <td align="center" style="font-size:24px; color:#666"> 人员管理 </td>
  23. </tr>
  24. <tr>
  25. <td align="right" > <a href="${pageContext.request.contextPath}/person/addperson"</span></span></span><span class="hljs-tag">&gt;</span></span>添加<span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">a</span></span></span><span class="hljs-tag">&gt;</span></span><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">td</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="28"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">tr</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="29"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">table</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="30"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">br</span></span></span><span class="hljs-tag">/&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="31"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">table</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">cellspacing</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"0"</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">border</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"1"</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">class</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"table1"</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="32"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">thead</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="33"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">tr</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="34"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">th</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">width</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"300"</span></span></span><span class="hljs-tag">&gt;</span></span>姓名<span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">th</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="35"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">th</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">width</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"300"</span></span></span><span class="hljs-tag">&gt;</span></span>身份证号<span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">th</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="36"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">th</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">width</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"300"</span></span></span><span class="hljs-tag">&gt;</span></span>电话<span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">th</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="37"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">th</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">width</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"300"</span></span></span><span class="hljs-tag">&gt;</span></span>地址<span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">th</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="38"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">th</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">width</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"300"</span></span></span><span class="hljs-tag">&gt;</span></span>编辑<span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">th</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="39"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">th</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">width</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"300"</span></span></span><span class="hljs-tag">&gt;</span></span>删除<span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">th</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="40"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">tr</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="41"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">thead</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="42"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">tbody</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="43"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> </div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="44"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">c:forEach</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">var</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"p"</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">items</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"${requestScope.personlist }">
  26. <tr>
  27. <td align="center">${p.name }<span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">td</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="47"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">td</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">align</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"center"</span></span></span><span class="hljs-tag">&gt;</span></span>${p.idCard } </td>
  28. <td align="center">${p.phone }<span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">td</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="49"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">td</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">align</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"center"</span></span></span><span class="hljs-tag">&gt;</span></span>${p.address } </td>
  29. <td align="center">
  30. <a href="${pageContext.request.contextPath}/person/doupdate?id=${p.id}"> <img src="<%=basePath %>images/编辑.png"> </a>
  31. </td>
  32. <td align="center">
  33. <a href="${pageContext.request.contextPath}/person/deletePersonById?id=${p.id}" onclick='return confirm("确认要删除吗?")'> <img src="<%=basePath %>images/trash.gif"> </a>
  34. </td>
  35. </tr>
  36. </c:forEach>
  37. </tbody>
  38. </table>
  39. <br/>
  40. </body>
  41. </html>
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62

editpage.jsp


   
  1. <%@ page language="java" import="java.util.*"
  2. contentType= "text/html; charset=UTF-8" %>
  3. <%
  4. String path = request .getContextPath();
  5. String basePath = request .getScheme() + "://" + request .getServerName() + ":" + request .getServerPort()
  6. + path + "/" ;
  7. %>
  8. <html>
  9. <head> </head>
  10. <body>
  11. <h3>员工编辑 </h3>
  12. <br />
  13. <br />
  14. <!-- action对应一个action标签,id对应提交时的对应关系 -->
  15. <form id="saveForm" action="${pageContext.request.contextPath}/person/updateperson"</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">method</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"post"</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="18"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">input</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">type</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"hidden"</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">name</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"id"</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">value</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"${person.id }" />
  16. <table style="font-size: :16px">
  17. <tr>
  18. <td>姓名: </td>
  19. <td> <input type="text" value="${person.name }"</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">name</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"name"</span></span></span><span class="hljs-tag"> /&gt;</span></span><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">td</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="23"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">tr</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="24"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">tr</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="25"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">td</span></span></span><span class="hljs-tag">&gt;</span></span>身份证号码:<span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">td</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="26"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">td</span></span></span><span class="hljs-tag">&gt;</span></span><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">input</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">type</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"text"</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">value</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"${person.idCard }" name="idCard" /> </td>
  20. </tr>
  21. <tr>
  22. <tr>
  23. <td>手机号: </td>
  24. <td> <input type="text" value="${person.phone }"</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">name</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"phone"</span></span></span><span class="hljs-tag"> /&gt;</span></span><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">td</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="32"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">tr</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="33"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">tr</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="34"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">td</span></span></span><span class="hljs-tag">&gt;</span></span>地址:<span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">td</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="35"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">td</span></span></span><span class="hljs-tag">&gt;</span></span><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">input</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">type</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"text"</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">value</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"${person.address }" name="address" /> </td>
  25. </tr>
  26. <tr>
  27. <td align="right">
  28. <input type="submit" value="更新" /> &nbsp;&nbsp; <a href="javascript:history.go(-1)">退回 </a>
  29. </tr>
  30. </table>
  31. </form>
  32. <!-- <tr>
  33. <td align="right"><a
  34. href="javascript:document.getElementById('saveForm').submit()">保存</a>
  35. &nbsp;&nbsp; <a href="javascript:history.go(-1)">退回 </a></td>
  36. </tr>
  37. -->
  38. </body>
  39. </html>
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53

savepage.jsp


   
  1. <%@ page language="java" import="java.util.*"
  2. contentType= "text/html; charset=UTF-8" %>
  3. <%
  4. String path = request .getContextPath();
  5. String basePath = request .getScheme() + "://" + request .getServerName() + ":" + request .getServerPort()
  6. + path + "/" ;
  7. %>
  8. <html>
  9. <head> </head>
  10. <body>
  11. <h3>人员添加 </h3>
  12. <br />
  13. <br />
  14. <form id="saveForm" action="${pageContext.request.contextPath}/person/saveperson"</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">method</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"post"</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="17"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">table</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">style</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"font-size: :16px"</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="18"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">tr</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="19"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">td</span></span></span><span class="hljs-tag">&gt;</span></span>姓名:<span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">td</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="20"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">td</span></span></span><span class="hljs-tag">&gt;</span></span><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">input</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">type</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"text"</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">value</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"${person.name }" name="name" /> </td>
  15. </tr>
  16. <tr>
  17. <td>身份证号码: </td>
  18. <td> <input type="text" value="${person.idCard }"</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">name</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"idCard"</span></span></span><span class="hljs-tag"> /&gt;</span></span><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">td</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="25"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">tr</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="26"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">tr</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="27"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">tr</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="28"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">td</span></span></span><span class="hljs-tag">&gt;</span></span>手机号:<span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;/</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">td</span></span></span><span class="hljs-tag">&gt;</span></span></div></div></li><li><div class="hljs-ln-numbers"><div class="hljs-ln-line hljs-ln-n" data-line-number="29"></div></div><div class="hljs-ln-code"><div class="hljs-ln-line"> <span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">td</span></span></span><span class="hljs-tag">&gt;</span></span><span class="hljs-tag" style="margin:0px; padding:0px; color:rgb(0,102,102)"><span class="hljs-tag">&lt;</span><span class="hljs-title" style="margin:0px; padding:0px; color:rgb(0,0,136)"><span class="hljs-tag"><span class="hljs-name">input</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">type</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"text"</span></span></span><span class="hljs-tag"> </span><span class="hljs-attribute" style="margin:0px; padding:0px; color:rgb(102,0,102)"><span class="hljs-tag"><span class="hljs-attr">value</span></span></span><span class="hljs-tag">=</span><span class="hljs-value" style="margin:0px; padding:0px; color:rgb(0,136,0)"><span class="hljs-tag"><span class="hljs-string">"${person.phone }" name="phone" /> </td>
  19. </tr>
  20. <tr>
  21. <td>地址: </td>
  22. <td> <input type="text" value="${person.address }" name="address" /> </td>
  23. </tr>
  24. <tr>
  25. <td align="right">
  26. <input type="submit" value="添加" /> &nbsp;&nbsp; <a href="javascript:history.go(-1)">退回 </a>
  27. </tr>
  28. </table>
  29. </form>
  30. </body>
  31. </html>
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44

error.jsp


   
  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding= "UTF-8" %>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  7. <title>Insert title here </title>
  8. </head>
  9. <body>
  10. <h3>登录失败 </h3>
  11. <a href="${pageContext.request.contextPath}/index.jsp">重新登录 </a>
  12. </body>
  13. </html>
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13

源码下载

源码下载:http://download.csdn.net/detail/peng_hong_fu/9706477

            </div>
  • 1
    点赞
  • 1
    评论
  • 3
    收藏
  • 扫一扫,分享海报

©️2021 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值