struts2 结果类型
来源:互联网 发布:个体户注册域名 编辑:程序博客网 时间:2024/06/18 12:01
index.jsp
<?xml version="1.0" encoding="GB18030" ?><%@ page language="java" contentType="text/html; charset=GB18030" pageEncoding="GB18030"%><% String context = request.getContextPath(); %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=GB18030" /><title>Insert title here</title></head><body>Result类型<ol> <li><a href="r/r1">dispatcher</a></li> <li><a href="r/r2">redirect</a></li> <li><a href="r/r3">chain</a></li> <li><a href="r/r4">redirectAction</a></li> <li>freemarker</li> <li>httpheader</li> <li>stream</li> <li>velocity</li> <li>xslt</li> <li>plaintext</li> <li>tiles</li></ol></body></html>
r1.jsp
<?xml version="1.0" encoding="GB18030" ?><%@ page language="java" contentType="text/html; charset=GB18030" pageEncoding="GB18030"%> <%@taglib uri="/struts-tags" prefix="s" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=GB18030" /><title>r1</title></head><body>r1</body></html>
r2.jsp
<?xml version="1.0" encoding="GB18030" ?><%@ page language="java" contentType="text/html; charset=GB18030" pageEncoding="GB18030"%> <%@taglib uri="/struts-tags" prefix="s" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=GB18030" /><title>r2</title></head><body>r2</body></html>
r3.jsp
<?xml version="1.0" encoding="GB18030" ?><%@ page language="java" contentType="text/html; charset=GB18030" pageEncoding="GB18030"%> <%@taglib uri="/struts-tags" prefix="s" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=GB18030" /><title>r3</title></head><body>r3</body></html>
r4.jsp
<?xml version="1.0" encoding="GB18030" ?><%@ page language="java" contentType="text/html; charset=GB18030" pageEncoding="GB18030"%> <%@taglib uri="/struts-tags" prefix="s" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=GB18030" /><title>r4</title></head><body>r4</body></html>
struts.xml
<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd"><struts> <constant name="struts.devMode" value="true" /> <package name="resultTypes" namespace="/r" extends="struts-default"> <action name="r1"> <result type="dispatcher">/r1.jsp</result> </action> <action name="r2"> <result type="redirect">/r2.jsp</result> </action> <action name="r3"> <result type="chain">r1</result> </action> <action name="r4"> <result type="redirectAction">r2</result> </action> </package></struts>
阅读全文
0 0
- Struts2 结果和结果类型
- Struts2-结果和结果类型
- struts2结果类型
- struts2结果类型
- Struts2 结果类型
- Struts2结果类型
- struts2 结果类型
- struts2结果类型分析
- struts2结果类型分析
- Struts2结果类型
- struts2结果类型
- struts2结果类型
- Struts2:Result结果类型
- Struts2中的结果类型
- struts2处理结果类型
- struts2结果类型
- struts2 处理结果类型
- Struts2 自定义结果类型
- 通过range函数快速产生一个list
- 远程文件批量下载并压缩ZIP包
- ROS从bag文件中导出图片
- 【Android】JNI调用简析
- mysql Tablespace exists解决
- struts2 结果类型
- 【Server端和Client端常见的通信方式】-TCP/IP和UDP
- FPGA----视频下采样------分辨率转换-----yuv444----yuv420
- UML 流程图 的简单识别
- List去重的几种方法
- 关于使用spring文件上传遇到的服务器中的图片访问不到报404的问题
- python:python语句中的continue和break
- memcached的基本命令
- ubuntu包管理命令apt和dpkg总结