ssh2的搭建(三)

前端页面写了3个,index.jsp添加学生信息,班级的添加是通过下拉框选择;lsitAll_student.jsp显示所有学生信息,并可以进行修改(跳转到修改页面)、删除(重新进入listAll_student.jsp页面)操作;update_studnet.jsp修改学生信息页面。

index.jsp

<%@ page language="java" import="java.util.*" pageEncoding="utf-8" contentType="text/html; charset=utf-8"%>
<%@ page contentType="text/html; charset=utf-8"  %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>



  
    
    
    My JSP 'index.jsp' starting page
	
	
	
	
	
	
  
  
  
    
姓名:

班级:

listAll_student.jsp
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>



  
    
    
    My JSP 'listAll_studnet.jsp' starting page
    
	
	
	
	
	
	

  
  
  
    
         
姓名 班级 操作
${student.stuName } ${student.classes.className } 修改 删除
update_student.jsp
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>



  
    
    
    My JSP 'update_student.jsp' starting page
    
	
	
	    
	
	
	

  
  
  
     


姓名:

班级:


你可能感兴趣的:(ssh2的搭建(三))