|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.btt.struts.taglib.html.StrutsJspContextService
Field Summary | |
---|---|
protected java.lang.String |
applicationID
The application session id string |
protected Context |
applicationSessionContext
The application session context |
protected java.lang.String |
baseWebApplURIPath
the Web Application URI plus base path |
protected DSEException |
dseexception
The current operation exception |
protected Vector |
errsJsp
The JSP format errors list |
protected java.lang.String[] |
errsVal
The validation errors list |
protected java.lang.String[] |
errsXVal
The cross-validation errors list |
protected javax.servlet.jsp.PageContext |
pageContext
pageContext |
protected Context |
processContext
The operation context. |
BTTRequestProcessorUtil |
processorUtil
|
protected javax.servlet.http.HttpServletRequest |
request
|
protected Context |
sessionContext
The SessionCtx |
protected java.lang.String |
sessionID
The session id string |
protected java.lang.String |
webApplURI
the Web Application URI |
Constructor Summary | |
---|---|
StrutsJspContextService()
|
Method Summary | |
---|---|
Context |
getApplicationSessionContext()
Return the application session context for the page which initialized this bean. |
java.lang.String |
getApplicationSessionId()
Returns the current application session identifier string "as-is". |
java.lang.String |
getBaseWebApplURIPath()
|
java.lang.String[] |
getCrossValidationErrorList()
Return the current list of cross validation errors. |
DataElement |
getElement(java.lang.String name)
Returns the named data element from the operation context. |
java.lang.String |
getFieldValidationError(java.lang.String name,
int idx)
Return the field error message text at the specified index. |
java.lang.String |
getInputDataInError(java.lang.String name)
|
protected java.lang.String |
getProcessId(javax.servlet.http.HttpServletRequest request)
|
Context |
getSessionContext()
Return the session context for the page which initialized this bean. |
java.lang.String |
getSessionId()
Returns the current session identifier string "as-is". |
java.lang.Object |
getSessionValue(java.lang.String name)
Returns the named value from the session context in its natural format. |
java.lang.String |
getStringValue(java.lang.String name)
Returns the specified value from the operation context as a string. |
java.lang.String[] |
getValidationErrorList()
Returns all validation errors in a single list array. |
java.lang.Object |
getValue(java.lang.String name)
Returns the named value from the operation context in its natural format. |
protected java.lang.Object |
getValue(java.lang.String name,
boolean useSess)
Deprecated. Replaced by getValue(String) . |
java.lang.String |
getWebApplURI()
Gets the webApplURI |
void |
initialize(javax.servlet.http.HttpServletRequest request)
The HttpServletRequest is supposed to have references to the operation context and exceptions placed by the toolkit during handling of the request. |
boolean |
isFieldHidden(java.lang.String name)
Returns the "hidden" status of the named field in the context. |
boolean |
isFieldInError(java.lang.String name)
Returns the error status of the named field in the context. |
boolean |
isFieldReadOnly(java.lang.String name)
Returns the "read only" status of the named field in the context. |
protected void |
setJspFormatError(java.lang.Exception xcp,
java.lang.String name)
Updates the JspFormatErrorList with information about the error occurred. |
protected void |
setJspFormatError(java.lang.Exception xcp,
java.lang.String name,
boolean useSess)
|
protected void |
setJspFormatError(java.lang.String text)
|
java.lang.String[] |
translateErrors(ErrorInfo errInfo)
Translate the field error message |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Context processContext
protected Context sessionContext
protected DSEException dseexception
protected Vector errsJsp
protected java.lang.String baseWebApplURIPath
protected java.lang.String[] errsVal
protected java.lang.String[] errsXVal
protected java.lang.String webApplURI
protected java.lang.String applicationID
protected Context applicationSessionContext
protected java.lang.String sessionID
protected javax.servlet.jsp.PageContext pageContext
protected javax.servlet.http.HttpServletRequest request
public BTTRequestProcessorUtil processorUtil
Constructor Detail |
public StrutsJspContextService()
Method Detail |
public java.lang.String getStringValue(java.lang.String name)
Handles exceptions by returning a null string value.
getStringValue
in interface JspContextService
public void initialize(javax.servlet.http.HttpServletRequest request) throws DSEException
request
- javax.servlet.http.HttpServletRequest
DSEException
protected java.lang.String getProcessId(javax.servlet.http.HttpServletRequest request)
protected void setJspFormatError(java.lang.Exception xcp, java.lang.String name, boolean useSess)
protected void setJspFormatError(java.lang.String text)
public boolean isFieldHidden(java.lang.String name)
isFieldHidden
in interface JspContextService
public boolean isFieldReadOnly(java.lang.String name)
isFieldReadOnly
in interface JspContextService
public boolean isFieldInError(java.lang.String name)
isFieldInError
in interface JspContextService
public java.lang.String getInputDataInError(java.lang.String name)
getInputDataInError
in interface JspContextService
protected void setJspFormatError(java.lang.Exception xcp, java.lang.String name)
name
- java.lang.Stringxcp
- public java.lang.String getBaseWebApplURIPath()
public DataElement getElement(java.lang.String name)
If the element is not present in the context, null is returned.
getElement
in interface JspContextService
name
- java.lang.String
public java.lang.String getFieldValidationError(java.lang.String name, int idx)
This method returns a blank string if the field has no errors.
getFieldValidationError
in interface JspContextService
name
- java.lang.Stringidx
- int
public java.lang.String[] translateErrors(ErrorInfo errInfo)
errInfo
- The errorInfo of the dataElement
public java.lang.Object getValue(java.lang.String name)
If the element is not present in the context hierarchy, null is returned.
getValue
in interface JspContextService
name
- java.lang.String
public java.lang.Object getSessionValue(java.lang.String name)
If the element is not present in the context, null is returned.
protected java.lang.Object getValue(java.lang.String name, boolean useSess)
getValue(String)
.
name
- java.lang.StringuseSess
- boolean
public java.lang.String[] getValidationErrorList()
getValidationErrorList
in interface JspContextService
public java.lang.String getWebApplURI()
public java.lang.String getApplicationSessionId()
public Context getApplicationSessionContext()
public Context getSessionContext()
public java.lang.String getSessionId()
public java.lang.String[] getCrossValidationErrorList()
getCrossValidationErrorList
in interface JspContextService
|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |