Action属性值决定物理视图资源
来源:互联网 发布:固态硬盘优化设置 编辑:程序博客网 时间:2024/06/06 10:51
配置result元素时,可以使用属性名来配置指定视图资源。但是这个属性,必须是Action类里的属性.
Action类
public class MyAction extends ActionSupport { private String target; private String tip; public String execute(){ setTip("恭喜你跳转成功"); return "success"; } public String getTarget() { return target; } public void setTarget(String target) { this.target = target; } public String getTip() { return tip; } public void setTip(String tip) { this.tip = tip; }}
struts.xml
<package name="default" extends="struts-default" namespace="/"> <action name="myAction" class="cn.action.MyAction"> <result>/${target}.jsp</result> </action> </package>
0 0
- Action属性值决定物理视图资源
- 多个Action共享一个视图及为Action注入属性值
- MFC(VS2012)资源视图->属性->消息 消失。
- action属性注入值
- Action属性值
- action属性获取值
- animator,视图控制器的视图转化为物理世界,图片添加重力碰撞,边缘碰撞属性
- 关于Windows Phone的资源文件Build Action属性
- MFC中打开资源视图的IDD_EXAMPLE_DIALOG以及属性框
- 为Action属性注入值
- struts2 action属性注入值
- 系统物理视图
- UML 物理视图
- action请求参数决定结果
- Action属性
- action属性
- 发现属性!寻找决定属性
- struts.xml文件定义Action处理结果与视图资源之间的映射关系
- newLISP运行scp命令并打印进度
- Hadoop之HDFS的操作
- POJ 1276 多重背包+模板
- Spring 笔记
- PAT螺旋方阵
- Action属性值决定物理视图资源
- map 有log n 的时间复杂度 map 有log n 的时间复杂度 map 有log n 的时间复杂度 map 有log n 的时间复杂度 map 有log n 的时间复杂度 map
- Python 资源大全中文版
- 第一章
- web前端新手需要认识的CSS;css共有多少标签呢?
- Android之记住密码与自动登陆实现
- C++变量和对象的区别联系
- Linux学习之通配符
- C#—实验8.8和实验8.9