|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.struts.action.ActionForm | +--uk.ac.ebi.intact.application.hierarchView.struts.framework.IntactBaseForm
Super class for all hierarchView related form classes.
Field Summary | |
static java.lang.String |
INTACT_ERROR
The global Intact error key. |
static java.lang.String |
INTACT_MESSAGE
The global Intact message key. |
static org.apache.log4j.Logger |
logger
|
Fields inherited from class org.apache.struts.action.ActionForm |
multipartRequestHandler, servlet |
Constructor Summary | |
IntactBaseForm()
|
Method Summary | |
protected void |
addError(java.lang.String key)
Adds an error with given key. |
protected void |
addError(java.lang.String key,
java.lang.String value)
Adds an error with given key and value. |
protected void |
addMessage(java.lang.String key)
Adds an error with given key. |
protected void |
addMessage(java.lang.String key,
java.lang.String value)
Adds an error with given key and value. |
protected org.apache.struts.action.ActionErrors |
getErrors()
return the error set |
protected org.apache.struts.action.ActionMessages |
getMessages()
return the error set |
protected boolean |
isErrorsEmpty()
Specify if an the error set is empty. |
protected boolean |
isMessagesEmpty()
Specify if an the error set is empty. |
protected void |
saveMessages(javax.servlet.http.HttpServletRequest request)
Saves the Messages in given request for |
Methods inherited from class org.apache.struts.action.ActionForm |
getMultipartRequestHandler, getServlet, getServletWrapper, reset, reset, setMultipartRequestHandler, setServlet, validate, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static org.apache.log4j.Logger logger
public static final java.lang.String INTACT_ERROR
public static final java.lang.String INTACT_MESSAGE
Constructor Detail |
public IntactBaseForm()
Method Detail |
protected org.apache.struts.action.ActionErrors getErrors()
protected void addError(java.lang.String key)
key
- the error key. This value is looked up in the
IntactResources.properties bundle.protected void addError(java.lang.String key, java.lang.String value)
key
- the error key. This value is looked up in the
IntactResources.properties bundle.value
- the value to substitute for the first place holder in the
IntactResources.properties bundle.protected boolean isErrorsEmpty()
protected org.apache.struts.action.ActionMessages getMessages()
protected void addMessage(java.lang.String key)
key
- the error key. This value is looked up in the
IntactResources.properties bundle.protected void addMessage(java.lang.String key, java.lang.String value)
key
- the error key. This value is looked up in the
IntactResources.properties bundle.value
- the value to substitute for the first place holder in the
IntactResources.properties bundle.protected boolean isMessagesEmpty()
protected void saveMessages(javax.servlet.http.HttpServletRequest request)
request
- the request to save errors.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |