|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.taglibs.velocity.ScopeTool
public class ScopeTool
Simple context tool to allow a template-in-JSP to access the scopes directly to retrieve objects/beans.
Field Summary | |
---|---|
protected javax.servlet.jsp.PageContext |
pageContext
|
Constructor Summary | |
---|---|
ScopeTool(javax.servlet.jsp.PageContext pageContext)
|
Method Summary | |
---|---|
java.lang.Object |
getAnyScope(java.lang.String name)
retrieves a named object from anyscope, working 'upwards': page - > request - > session - > application |
java.lang.Object |
getApplicationScope(java.lang.String name)
retrieves an object from the application scope |
java.lang.Object |
getPageScope(java.lang.String name)
retrieves an object from the page scope |
java.lang.Object |
getRequestScope(java.lang.String name)
retrieves an object from the request scope |
java.lang.Object |
getSessionScope(java.lang.String name)
retrieves an object from the session scope |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected javax.servlet.jsp.PageContext pageContext
Constructor Detail |
---|
public ScopeTool(javax.servlet.jsp.PageContext pageContext)
Method Detail |
---|
public java.lang.Object getPageScope(java.lang.String name)
name
- Name of object in scope
public java.lang.Object getRequestScope(java.lang.String name)
name
- Name of object in scope
public java.lang.Object getSessionScope(java.lang.String name)
name
- Name of object in scope
public java.lang.Object getApplicationScope(java.lang.String name)
name
- Name of object in scope
public java.lang.Object getAnyScope(java.lang.String name)
name
- Name of object in scope
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |