public class ParametersInterceptor extends AroundInterceptor {
//~ Methods ////////////////////////////////////////////////////////////////
protected void after(ActionInvocation dispatcher, String result) throws Exception {
}
protected void before(ActionInvocation invocation) throws Exception {
if (!(invocation.getAction() instanceof NoParameters)) {
final Map parameters = ActionContext.getContext().getParameters();
//用于获取Map 结构中的Parameters
if (log.isDebugEnabled()) {
log.debug("Setting params " parameters);
}
ActionContext invocationContext = invocation.getInvocationContext();
try {
invocationContext.put(InstantiatingNullHandler.CREATE_NULL_OBJECTS, Boolean.TRUE);
文章整理:西部数码--专业提供域名注册、虚拟主机服务
http://www.west263.com
以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!


