经过Struts2的action校验后跳转页面样例
通过Struts2的action校验后跳转页面样例
login.jsp通过Struts2的action校验后跳转到main.jsp,main.jsp是个框架页,样例如下:
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title></title> </head> <frameset rows="63,*,23" frameborder="no" border="0" framespacing="0"> <frame src="<%= path %>/sys/top.jsp" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" /> <frame src="<%= path %>/sys/center.jsp" name="mainFrame" id="mainFrame" /> <frame src="<%= path %>/sys/down.jsp" name="bottomFrame" scrolling="No" noresize="noresize" id="bottomFrame" /> </frameset> </html>