ITeye博客

struts2

共 3 篇文章

SSI SERCURITY 框架

见附件附件

2011-10-26 12:25 · struts2

struts2 validation中指定返回的result input

@InputConfig注解于方法 这样当validation验证错误后就可以返回名为create_input的视图 @InputConfig(methodName="createForm") public String create() { try { // userService.createUser(user , roles); TestDataProvider.users.add(user); return "createSuccess"; } catch (Exception e) { logger.error(e); return ERROR; } } public String…

2011-06-20 15:41 · struts2

action在request中返回的结果进行重新的处理

userAction private String name; userActionInterceptor InterceptorMethod(){ step_1: 得到当前拦截的action step_2: 得到 action properties 修改 这样应该是没有问题的! } Adding a PreResultListener Accessing the ResultConfig Objects If you need to work with the set of ResultConfigs before the Action executes, you can use an I…

2010-09-07 23:12 · struts2 · Java