Struts2 一个form组成的action内包含多个请求的处理方式。通配符形式。
来源:互联网 发布:算法工程师本科学什么 编辑:程序博客网 时间:2024/05/10 06:21
example.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><package name="example" extends="struts-default"><action name="Login_*" method="{1}"class="org.apache.struts.example.{1}Action"><result name="input">/error.jsp</result><result name="success">/html/menu_{1}.jsp</result></action></package></struts>
struts.xml
<include file="example.xml"/>
org.apache.struts.example package
TestAction.java
package org.apache.struts.example;import com.opensymphony.xwork2.ActionSupport;public class TestAction extends ActionSupport {/** * */private static final long serialVersionUID = 2468040677490860546L;public String Test() throws Exception {System.out.print("execute success");return SUCCESS;}}
/html/menu_Test.jsp
<?xml version="1.0" encoding="windows-31j" ?><%@ page language="java" contentType="text/html; charset=windows-31j" pageEncoding="windows-31j"%><!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=windows-31j" /><title>Test</title></head><body><h1>This is menu_Test.jsp</h1></body></html>
完毕~
- Struts2 一个form组成的action内包含多个请求的处理方式。通配符形式。
- Struts2一个Action内包含多个请求处理方法的处理(三种方式)
- Struts2一个Action内包含多个请求处理方法的处理,method的使用方法,struts2中的路径问题,通配符映射
- Struts2一个Action内包含多个请求处理方法的处理,method的使用方法,struts2中的路径问题,通配符映射
- Struts2一个Action内包含多个请求处理方法的处理,method的使用方法,struts2中的路径问题,通配符映射
- Struts2一个Action内包含多个请求处理方法的处理,method的使用方法,struts2中的路径问题,通配符映射
- Struts2一个Action内包含多个请求处理方法的处理,method的使用方法,struts2中的路径问题,通配符映射 (
- Struts2一个Action内包含多个请求处理方法的处理,method的使用方法,struts2中的路径问题,通配符映射
- Struts2一个Action内包含多个请求处理方法的处理
- Struts2一个Action内包含多个请求处理方法的处理
- Struts2一个Action内包含多个请求处理方法的处理
- Struts2一个Action内包含多个请求处理方法(三种方式)
- 通配符方式解决struts框架一个Action对应多个请求的处理
- 一个Action内包含多个请求处理方法的处理
- Struts2中一个Action多个请求处理方法的三种实现方式
- Struts2中一个Action多个请求处理方法的三种实现方式
- Struts2 通配符映射(wildcard mappings) 多个请求一个action处理
- struts2的action包含多个方法调用方式
- PCI Bus
- 移动应用开发技术选择六要素
- C#导入Excel-支持2003/2007
- 多线程共享数据案例
- 回顾大学--所有实验列表
- Struts2 一个form组成的action内包含多个请求的处理方式。通配符形式。
- RS232
- 使用Spring 2.5注解自动注册Bean的配置
- ThreadLocal线程范围内共享数据
- 云计算的架构
- Visual C#常用控件属性
- 五个免费开源的数据挖掘软件
- 解决WebService只能响应本地计算机的请求
- 你也许不知道的#define用法