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, setNext
protected View view
public static final String DEFAULT_ATTRIBUTE
protected int index
public void init(NutConfig config, ActionInfo ai) throws Throwable
AbstractProcessor
init
in interface Processor
init
in class AbstractProcessor
Throwable
public void process(ActionContext ac) throws Throwable
Throwable
public 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.