Struts 2初接触
来源:互联网 发布:宿舍神器淘宝店 编辑:程序博客网 时间:2024/05/10 15:25
package com.chai.action;import com.opensymphony.xwork2.ActionSupport;public class UserAction extends ActionSupport {public String add(){System.out.println("add");return SUCCESS;}}
Struts2 里面 struts.xml 是在src 里面
package com.chai.action;import com.opensymphony.xwork2.ActionSupport;public class UserAction extends ActionSupport {public String add(){System.out.println("add");return SUCCESS;}}
<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.1//EN" "http://struts.apache.org/dtds/struts-2.1.dtd"><struts><constant name="struts2.devModel" value="true" /><package name="index" namespace="/user" extends="struts-default"><action name="*_*" class="com.chai.action.{1}Action" method="{2}"><result name="success">/{1}_{2}_success.jsp</result></action></package></struts>
约定优于配置
- Struts 2初接触
- Struts 接触123 (一)
- 零距离接触struts
- stm32BootLoader初接触-2
- 你好吗?Struts 2-第一次亲密接触----- 一个完整的struts 2 Hello World程序(5)
- 接触struts--struts配置(1)
- java的初接触(2)
- 关于WebRTC初接触2
- 终于和struts亲密接触了
- 刚接触struts。。。很郁闷!!!纳闷中?!
- 接触Struts2--理解Struts.xml标签
- Silverlight3学习笔记(2):Silverlight初接触
- 星际争霸2编辑器的初接触
- Python初接触--数据类型(2)
- 首次接触Struts,感觉一下~(myeclipse下)
- 接触Struts2--理解struts.xml标签(二)
- 初接触Tomcat
- .Net Assembly初接触
- java.lang.refect反射UserForm
- ASP 解压缩文件代码
- Xml基础
- 利用Xml 创建表
- hibernate_annotation
- Struts 2初接触
- struts2 Action属性接受属性
- struts2 Action属性接受属性(二)
- struts1.x上传下载
- DisplayTag1.2
- 第三步:移动sprite小精灵
- 23种种设计模式
- 仿google搜索提示 SuggestFramework的使用
- window.showModalDialog和window.open关闭子页面时刷新父页面【转】