public class ViewProcessor extends AbstractProcessor
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_ATTRIBUTE |
protected int |
index |
protected View |
view |
next| Constructor and Description |
|---|
ViewProcessor() |
| Modifier and Type | Method and Description |
|---|---|
static View |
evalView(NutConfig config,
ActionInfo ai,
String viewType) |
void |
init(NutConfig config,
ActionInfo ai)
建议覆盖这个方法,以便从NutConfig/ActionInfo获取需要的信息
|
void |
process(ActionContext ac) |
static void |
putRequestAttribute(javax.servlet.http.HttpServletRequest req,
Object re)
保存对象到attribute
|
doNext, evalObj, getNext, renderView, setNextprotected View view
public static final String DEFAULT_ATTRIBUTE
protected int index
public void init(NutConfig config, ActionInfo ai) throws Throwable
AbstractProcessorinit in interface Processorinit in class AbstractProcessorThrowablepublic void process(ActionContext ac) throws Throwable
Throwablepublic static void putRequestAttribute(javax.servlet.http.HttpServletRequest req,
Object re)
public static View evalView(NutConfig config, ActionInfo ai, String viewType)
Copyright © 2017. All rights reserved.