
Struts
Bruce_Json
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Struts——OGNL表达式
private String username; //get and set ... public String execute() { return SUCCESS; }访问值栈中的action的普通属性: username = <s:property value="username"/>访问值栈中对象的普通方法:<s:property value...原创 2019-01-24 11:52:03 · 223 阅读 · 0 评论 -
Struts——标签
1、property escape设置为true,会把hr当字符串输出property: <s:property value="username"/> property 取值为字符串: <s:property value="'username'"/> property 设定默认值: <s:property value="admin" default="管.原创 2019-01-24 15:14:59 · 152 阅读 · 0 评论 -
Struts——I18N
1、例子 public class Test { public static void main(String[] args) { ResourceBundle res = ResourceBundle.getBundle("app", Locale.CHINA); System.out.println(res.getString("welcome.msg" )); }}...原创 2019-01-24 16:19:04 · 259 阅读 · 0 评论 -
Struts——拦截器
1、定义自己的拦截器继承:AbstractInterceptor重写:interceptinvoke()方法是执行action中的内容注册拦截器到action中: <action name="printUsername" class="controller.PrintUsername"> <result name="toPrintUsername...原创 2019-01-24 17:42:25 · 168 阅读 · 0 评论 -
Struts——Action
1、拦截器继承:AbstractInterceptor重写:interceptinvoke()方法是执行action中的内容注册拦截器到action中: <action name="printUsername" class="controller.PrintUsername"> <result name="toPrintUsernameJSP"&...原创 2019-01-21 16:42:55 · 188 阅读 · 0 评论