struts2用action属性接收参数
来源:互联网 发布:淘宝单号查询 编辑:程序博客网 时间:2024/05/21 17:30
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="user" extends="struts-default" namespace="/user"> <action name="user" class="com.struts.UserAction"> <result>/user_add_success.jsp</result> </action> </package></struts>
UserAction.java
import com.opensymphony.xwork2.ActionSupport;public class UserAction extends ActionSupport {private String name;private int age;public String add() {System.out.println("name=" + name);System.out.println("age=" + age);return SUCCESS;}public String getName() {return name;}public void setName(String name) {this.name = name;}public int getAge() {return age;}public void setAge(int age) {this.age = age;}}测试连接
http://localhost:8080/Struts2/user/user!add?name=a&age=8
- struts2用action属性接收参数
- Struts2 用action属性接收参数
- struts2.1用action的属性接收参数
- 3.struts2 用action的属性接收参数
- Struts2 Action属性接收参数中文问题
- Struts2使用action属性来接收参数
- Struts2中Action的属性接收参数
- Struts2中Action的属性接收参数
- 道听途说Struts2之7:使用Action属性接收参数
- Struts2中Action接收参数的方法:属性,Model,ModelDriver
- Struts2中Action接收参数的方法:属性,Model,ModelDriver
- Struts2学习之Action接收参数方法一(属性接收参数(属性驱动))
- struts2 之 action接收参数
- Struts2 Action接收表单参数
- Struts2 用Action的属性接受参数
- struts2 Action专题之三:action的属性接收参数的方式
- struct2用Action的属性接收参数的方法
- Struts2学习之Action接收参数方法二(用DomainModel接收参数(模型驱动))
- 在IOS中实现导入&导出文档
- 查看linux操作系统信息
- 电脑右键新建没有记事本怎么办?
- 大量使用dblink查询的后果
- 项目管理心得:一个项目经理的个人体会、经验总结
- struts2用action属性接收参数
- CCTexture2D、CCTextureAtlas、CCSprite及CCSpriteBatchNode
- android下图片压缩
- linux上查看系统信息
- proto-gen AS3版本的protobuf extension反序列化错误解决方法
- PHP API反射实例
- 2012年Hadoop渐成熟 12家厂商群雄逐鹿
- 你真的了解.NET中的String吗?
- Task和Activity相关(zz)