Methods Summary |
---|
protected org.apache.struts.action.ActionForward | findFailure(org.apache.struts.action.ActionMapping mapping)Return the local or global forward named "failure"
or null if there is no such forward.
return (mapping.findForward(Constants.FAILURE));
|
protected org.apache.struts.action.ActionForward | findSuccess(org.apache.struts.action.ActionMapping mapping)Return the mapping labeled "success"
or null if there is no such mapping.
return (mapping.findForward(Constants.SUCCESS));
|
protected org.apache.struts.webapp.example.UserDatabase | getUserDatabase(javax.servlet.http.HttpServletRequest request)Return a reference to the UserDatabase
or null if the database is not available.
// ------------------------------------------------------ Protected Methods
return (UserDatabase) servlet.getServletContext().getAttribute(
Constants.DATABASE_KEY);
|
public org.apache.struts.webapp.example.UserDatabase | getUserDatabase()
return database;
|
public void | setUserDatabase(org.apache.struts.webapp.example.UserDatabase database)
// --------------------------------------------------------- Public Methods
this.database = database;
|