org.activemath.webapp.controller
Class ViewPageItem
java.lang.Object
org.infohazard.maverick.ctl.Throwaway2
org.infohazard.maverick.ctl.ThrowawayBean2
org.activemath.webapp.base.ControllerBase
org.activemath.webapp.controller.ViewBook
org.activemath.webapp.controller.ViewPageItem
- All Implemented Interfaces:
- Controller
public class ViewPageItem
- extends ViewBook
Generate a bean for a page item.
Additional request parameters:
- item - 1-based index of the page item to retrieve.
|
Method Summary |
protected String |
action()
View a page of a book
We distinguish between a textual and binary layout format. |
void |
setItem(String string)
|
| Methods inherited from class org.activemath.webapp.base.ControllerBase |
addError, addError, enableNoCache, escapeForHtmlSafety, getAccountManager, getAppSession, getCmdName, getCurrentUser, getErrors, getHttpSession, getLanguage, getModel, getOutputFormat, getRequest, getResponse, getSkin, hasErrors, perform, publishControllerEvent, sendError, sendError, sendJson, sendLoginRequired, sendRedirect, sendRedirect, setPasswd, setUser |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
itemIndex
protected int itemIndex
ViewPageItem
public ViewPageItem()
setItem
public void setItem(String string)
action
protected String action()
throws Exception
- Description copied from class:
ViewBook
- View a page of a book
We distinguish between a textual and binary layout format.
Textual formats are created by a Velocity template and are
rendered to the Servlets
PrintWriter.
For binary formats, we first create the required assembly format
(which is usually textual) by Veloctiy, then pass on the result
to the presentation formatter. This will render to the Servlet's
OutputStream.
In both cases, callbacks into the presentation formatting systems are done
by a TransformerTool.
- Overrides:
action in class ViewBook
- Throws:
Exception- See Also:
org.activemath.presentation.servlets.controller.AMController#action()