81,092
社区成员
发帖
与我相关
我的任务
分享
<%@ page language="java" pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSF 'MyJsp.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
<f:view>
<h:form>
<h:commandLink value="test" action="next" />
</h:form>
</f:view>
</body>
</html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><base href="http://localhost:8080/TestWeb/"><title>My JSF 'MyJsp.jsp' starting page</title><meta http-equiv="pragma" content="no-cache"><meta http-equiv="cache-control" content="no-cache"><meta http-equiv="expires" content="0"><meta http-equiv="keywords" content="keyword1,keyword2,keyword3"><meta http-equiv="description" content="This is my page"><!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head><body><form id="j_id_jsp_1560094981_1" name="j_id_jsp_1560094981_1" method="post" action="/TestWeb/MyJsp.faces" enctype="application/x-www-form-urlencoded"><input type="hidden" name="j_id_jsp_1560094981_1" value="j_id_jsp_1560094981_1"> <script type="text/javascript" language="Javascript">function dpf(f) {var adp = f.adp;if (adp != null) {for (var i = 0;i <adp.length;i++){f.removeChild(adp[i]);}}};functionapf(f,pvp){varadp=newArray();f.adp=adp;varps=pvp.split(',');for(vari=0,ii=0;i<ps.length;i++,ii++){varp=document.createElement("input");p.type="hidden";p.name=ps[i];p.value=ps[i+1];f.appendChild(p);adp[ii]=p;i+=1;}};functionjsfcljs(f,pvp,t){apf(f,pvp);if(t){f.target=t;}f.submit();dpf(f);};
</script> <a href="#" onclick="if(typeof jsfcljs == 'function'){jsfcljs(document.forms['j_id_jsp_1560094981_1'],'j_id_jsp_1560094981_1:j_id_jsp_1560094981_2,j_id_jsp_1560094981_1:j_id_jsp_1560094981_2','');}return false">test</a><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="j_id3:j_id4"></form></body></html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="http://localhost:8080/TestWeb/">
<title>My JSF 'MyJsp.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
<form id="j_id_jsp_1560094981_1" name="j_id_jsp_1560094981_1" method="post" action="/TestWeb/MyJsp.faces" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="j_id_jsp_1560094981_1" value="j_id_jsp_1560094981_1" />
<script type="text/javascript" language="Javascript">function dpf(f) {var adp = f.adp;if (adp != null) {for (var i = 0;i < adp.length;i++) {f.removeChild(adp[i]);}}};function apf(f, pvp) {var adp = new Array();f.adp = adp;var ps = pvp.split(',');for (var i = 0,ii = 0;i < ps.length;i++,ii++) {var p = document.createElement("input");p.type = "hidden";p.name = ps[i];p.value = ps[i + 1];f.appendChild(p);adp[ii] = p;i += 1;}};function jsfcljs(f, pvp, t) {apf(f, pvp);if (t) {f.target = t;}f.submit();dpf(f);};</script>
<a href="#" onclick="if(typeof jsfcljs == 'function'){jsfcljs(document.forms['j_id_jsp_1560094981_1'],'j_id_jsp_1560094981_1:j_id_jsp_1560094981_2,j_id_jsp_1560094981_1:j_id_jsp_1560094981_2','');}return false">test</a><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="j_id1:j_id2" />
</form>
</body>
</html>
<filter>
<display-name>Ajax4jsf Filter</display-name>
<filter-name>ajax4jsf</filter-name>
<filter-class>org.ajax4jsf.Filter</filter-class>
</filter>
<filter-mapping>
<filter-name>ajax4jsf</filter-name>
<servlet-name>Faces Servlet</servlet-name>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
<dispatcher>INCLUDE</dispatcher>
</filter-mapping>