|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch3.reorganised.HelperBase
ch3.reorganised.ControllerHelper
public class ControllerHelper
A helper class that can use member variables.
The helper creates and fills a bean with valid data. The doGet method is similar to the doGet method from previous controllers.
| Field Summary | |
|---|---|
protected RequestDataDefault |
data
The bean that will store the validated request data. |
| Fields inherited from class ch3.reorganised.HelperBase |
|---|
request, response |
| Constructor Summary | |
|---|---|
ControllerHelper(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Call the base class constructor to store the request and response. |
|
| Method Summary | |
|---|---|
protected void |
doGet()
This method is similar to the doGet method from previous controllers. |
java.lang.Object |
getData()
An accessor that allows the JSPs to retrieve the bean from the helper. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected RequestDataDefault data
| Constructor Detail |
|---|
public ControllerHelper(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
request - Request information encapsulated in a Java objectresponse - Response information encapsulated in a Java object| Method Detail |
|---|
public java.lang.Object getData()
protected void doGet()
throws javax.servlet.ServletException,
java.io.IOException
javax.servlet.ServletException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||