struct2 tags - Getting Started
2014-03-20 10:00
197 查看
Getting Started
1. VIEW
要引入taglib
<%@ taglib prefix="s" uri="/struts-tags" %>
然后加入以下内容
<body>
<s:property value="status" /> <br>
</body>
这表示在此显示Action中的一个叫status的变量的值
2. Action
public class TestAction extends ActionSupport
{
Integer status;
public String execute()
{
status = 1;
return SUCCESS;
}
public Integer getStatus()
{
return status;
}
public void setStatus(Integer status)
{
this.status = status;
}
}
1. VIEW
要引入taglib
<%@ taglib prefix="s" uri="/struts-tags" %>
然后加入以下内容
<body>
<s:property value="status" /> <br>
</body>
这表示在此显示Action中的一个叫status的变量的值
2. Action
public class TestAction extends ActionSupport
{
Integer status;
public String execute()
{
status = 1;
return SUCCESS;
}
public Integer getStatus()
{
return status;
}
public void setStatus(Integer status)
{
this.status = status;
}
}
相关文章推荐
- inotify 中, 在 read 其 struct inotify_event 时, 缓冲区必须大于读取的结构体的大小
- 关键字-分节13(struct)
- struct device / device_driver 结构体
- C struct 成员冒号
- request_mem_region 与 ioremap ,struct resource
- 将cell数组转换为struct数组,将struct数组的某个属性转换为数组,找到struct数组中某个属性的最大值的索引
- DRAWITEMSTRUCT ( drawitem )
- Hive学习笔记 --- Required field 'sessionHandle' is unset! Struct:TExecuteStatementReq(sessionHan
- 详解struct sockaddr
- struct file struct inode
- struct2的优点
- C 语言Struct 实现运行类型识别 RTTI
- union myun { struct{ int x; int y; int z; }u; int k; }a;
- codevs1281 矩阵乘法 快速幂 !!!手写乘法取模!!! 练习struct的构造函数和成员函数
- vm_area_struct
- C——struct
- struct input_event详解
- C语言中typedef struct的用法实践
- Struct2.0第一个例子
- struct和typedef struct