|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.noaa.pmel.tmap.AbstractFormBean
| Field Summary | |
(package private) java.lang.String |
mErrorMessage
|
(package private) FormParameters |
mParams
|
(package private) HttpServletRequest |
mReq
|
(package private) TemplateSession |
mSession
|
| Constructor Summary | |
AbstractFormBean()
|
|
| Method Summary | |
java.lang.String |
getErrorMessage()
Error message to display if form is not valid. |
FormHandler |
getFormHandler()
|
FormParameters |
getParameters()
Form parameters contained in the HTTP post |
HttpServletRequest |
getRequest()
|
TemplateSession |
getSession()
|
abstract void |
handle()
Handle the form. |
void |
init(HttpServletRequest req)
Initializes the FormBean |
abstract boolean |
isValid(java.lang.String nextUrl)
Validate form parameters |
abstract java.lang.String |
nextURL()
next URL to use after the form has been processed |
void |
setErrorMessage(java.lang.String mess)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
java.lang.String mErrorMessage
FormParameters mParams
HttpServletRequest mReq
TemplateSession mSession
| Constructor Detail |
public AbstractFormBean()
| Method Detail |
public void init(HttpServletRequest req)
throws ServletException,
java.sql.SQLException
FormBean
init in interface FormBeanreq - the servlet requrest
ServletException
java.sql.SQLException
public abstract boolean isValid(java.lang.String nextUrl)
throws ServletException,
java.sql.SQLException
FormBean
isValid in interface FormBeannextUrl - nextUrl to visit after form has been processed
ServletException
java.sql.SQLExceptionpublic void setErrorMessage(java.lang.String mess)
public java.lang.String getErrorMessage()
throws ServletException,
java.sql.SQLException
FormBean
getErrorMessage in interface FormBeanServletException
java.sql.SQLException
public abstract void handle()
throws ServletException,
java.sql.SQLException
FormBean
handle in interface FormBeanServletException
java.sql.SQLException
public abstract java.lang.String nextURL()
throws ServletException,
java.sql.SQLException
FormBean
nextURL in interface FormBeanServletException
java.sql.SQLExceptionpublic FormParameters getParameters()
FormBean
getParameters in interface FormBeanpublic FormHandler getFormHandler()
public HttpServletRequest getRequest()
public TemplateSession getSession()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||