sendforward.jsp

来自「用SPRING做的一个企业信息系统网站」· JSP 代码 · 共 72 行

JSP
72
字号
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<body>
		<c:if test="${name=='add'}">
			<script type="text/javascript">
    			alert("产品添加成功!!!");
    			window.location.href="managerview/product_add.jsp";
	    	</script>
		</c:if>
		<c:if test="${name=='update'}">
			<script type="text/javascript">
    			alert("产品修改成功!!!");
    			window.location.href="product.do?method=listAllproduct&name=modi";
    		</script>
		</c:if>
		
		<c:if test="${name=='dele'}">
			<script type="text/javascript">
    			alert("产品删除成功!!!");
    			window.location.href="product.do?method=listAllproduct&name=dele";
    		</script>
		</c:if>
		<c:if test="${name=='honouradd'}">
			<script type="text/javascript">
    			alert("公司荣誉添加成功!!!");
    			window.location.href="managerview/honour_add.jsp";
	    	</script>
		</c:if>
				<c:if test="${name=='honourupdate'}">
			<script type="text/javascript">
    			alert("公司荣誉修改成功!!!");
    			window.location.href="honour.do?method=listAllhonour&name=modi";
    		</script>
		</c:if>
		
		<c:if test="${name=='honourdele'}">
			<script type="text/javascript">
    			alert("公司荣誉删除成功!!!");
    			window.location.href="honour.do?method=listAllhonour&name=dele";
    		</script>
		</c:if>
		
				<c:if test="${name=='instructoradd'}">
			<script type="text/javascript">
    			alert("技术支持添加成功!!!");
    			window.location.href="managerview/instructor_add.jsp";
	    	</script>
		</c:if>
				<c:if test="${name=='instructorupdate'}">
			<script type="text/javascript">
    			alert("技术支持修改成功!!!");
    			window.location.href="instructor.do?method=listAllinstructor&name=modi";
    		</script>
		</c:if>
		
		<c:if test="${name=='instructordele'}">
			<script type="text/javascript">
    			alert("技术支持删除成功!!!");
    			window.location.href="instructor.do?method=listAllinstructor&name=dele";
    		</script>
		</c:if>
		<c:if test="${name=='overSize'}">
			<script type="text/javascript">
    			alert("您上传的文件过大!!!");
    			window.location.href="instructor.do?method=listAllinstructor&name=dele";
    		</script>
		</c:if>
	</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?