org.infohazard.maverick.ctl
Class ThrowawayFormBeanUser
java.lang.Object
|
+--org.infohazard.maverick.ctl.Throwaway2
|
+--org.infohazard.maverick.ctl.ThrowawayFormBeanUser
- All Implemented Interfaces:
- Controller
- public abstract class ThrowawayFormBeanUser
- extends Throwaway2
This is a hybrid between Throwaway and FormBeanUser - the controller
is instantiated like a Throwaway, but allows a form bean to be
populated instead.
Method Summary |
protected java.lang.Object |
getForm()
|
java.lang.String |
go()
Executes this controller. |
protected java.lang.Object |
makeFormBean()
This method will be called to produce a simple bean whose properties
will be populated with the http request parameters. |
protected java.lang.String |
perform()
This method can be overriden to perform application logic. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ThrowawayFormBeanUser
public ThrowawayFormBeanUser()
getForm
protected java.lang.Object getForm()
go
public final java.lang.String go()
throws java.lang.Exception
- Executes this controller. Override one of the other perform()
methods to provide application logic.
- Specified by:
go
in class Throwaway2
java.lang.Exception
perform
protected java.lang.String perform()
throws java.lang.Exception
- This method can be overriden to perform application logic.
Override this method if you want the model to be something
other than the formBean itself.
java.lang.Exception
makeFormBean
protected java.lang.Object makeFormBean()
- This method will be called to produce a simple bean whose properties
will be populated with the http request parameters. The parameters
are useful for doing things like persisting beans across requests.
Default is to return this.