org.infohazard.maverick.view
Class DocumentView

java.lang.Object
  |
  +--org.infohazard.maverick.view.DocumentView
All Implemented Interfaces:
View

public abstract class DocumentView
extends java.lang.Object
implements View

Sets up a bean in an attribute collection


Field Summary
protected  java.lang.String beanName
          The name of the bean in the appropriate scope attributes.
protected  View forward
          Holds the aggregated view which renders the JSP (or whatever).
 
Constructor Summary
DocumentView(java.lang.String beanName, View forward)
           
 
Method Summary
 void go(ViewContext vctx)
          Renders the specified model to the response.
protected abstract  void setAttribute(ViewContext vctx)
          Override this to place the value in whatever collection is appropriate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

beanName

protected java.lang.String beanName
The name of the bean in the appropriate scope attributes.


forward

protected View forward
Holds the aggregated view which renders the JSP (or whatever).

Constructor Detail

DocumentView

public DocumentView(java.lang.String beanName,
                    View forward)
Parameters:
beanName - is the name of the bean in the appropriate scope attributes.
forward - is the aggregated View (probably DispatchedView) which actually renders the JSP.
Method Detail

go

public void go(ViewContext vctx)
        throws java.io.IOException,
               javax.servlet.ServletException
Description copied from interface: View
Renders the specified model to the response.

Specified by:
go in interface View
java.io.IOException
javax.servlet.ServletException
See Also:
View.go(org.infohazard.maverick.flow.ViewContext)

setAttribute

protected abstract void setAttribute(ViewContext vctx)
Override this to place the value in whatever collection is appropriate.