org.activemath.webapp.controller
Class ViewBook
java.lang.Object
org.infohazard.maverick.ctl.Throwaway2
org.infohazard.maverick.ctl.ThrowawayBean2
org.activemath.webapp.base.ControllerBase
org.activemath.webapp.controller.ViewBook
- All Implemented Interfaces:
- Controller
- Direct Known Subclasses:
- ViewPageItem
public class ViewBook
- extends ControllerBase
Controller to view a book
This is the central controller to view content in ActiveMath.
Request parameters:
- book - id of the book
- page - page number to show (0=whole book)
| 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 |
ViewBook
public ViewBook()
setBook
public void setBook(String string)
setChapter
public void setChapter(String string)
setPage
public void setPage(String string)
setSlide
public void setSlide(String slide)
action
protected String action()
throws Exception
- 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 ControllerBase
- Throws:
Exception- See Also:
org.activemath.presentation.servlets.controller.AMController#action()