|
JSPTemplates | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.tp23.jasper.DestinationImpl
Replacement for a request/response. It contains an internal StringBuffer to which the jsp writes which can then be read as a normal String.
| Constructor Summary | |
DestinationImpl(java.util.Map properties,
Engine server)
The Properties supplied are analogous to the request parameters |
|
| Method Summary | |
void |
forward(java.lang.String jsp)
forward to another MyJasper JSP (does not work if you give it a URL). |
java.lang.String |
getCalledUri()
gets the String supplied to call the JSP. |
java.lang.String |
getOutput()
gets the result of the page. |
java.io.OutputStream |
getOutputStream()
get the StringWriter in an OutputStream wrapper |
java.lang.Object |
getParameter(java.lang.String key)
get a parameter similar to a request parameter but can be any object passed by the engine. |
Engine |
getServer()
Gets the MyJasper that is running the JSP. |
Session |
getSession()
returns the Session. |
java.io.StringWriter |
getWriter()
get the StringWriter to which data is being written |
void |
include(java.lang.String jsp)
Include another MyJasper JSP (does not work if you give it a URL). |
void |
setCalledUri(java.lang.String uri)
Called by the container, the uri can be reset by a JSP but it will have no effect. |
void |
setSession(Session session)
Sets the session to any HashSession. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DestinationImpl(java.util.Map properties,
Engine server)
properties - Any parameters required in the JSPserver - the container in which this destination exists| Method Detail |
public void setCalledUri(java.lang.String uri)
setCalledUri in interface Destinationpublic java.lang.String getCalledUri()
getCalledUri in interface DestinationMyJasper.getOutput(java.lang.String)public void setSession(Session session)
setSession in interface Destinationsession - The new session valuepublic Engine getServer()
getServer in interface Destinationpublic java.io.StringWriter getWriter()
getWriter in interface Destinationpublic java.io.OutputStream getOutputStream()
getOutputStream in interface Destinationpublic Session getSession()
session variable can also be usedgetSession in interface Destinationpublic java.lang.Object getParameter(java.lang.String key)
getParameter in interface Destinationkey - key to the session object (generally a String)public java.lang.String getOutput()
getOutput in interface Destination
public void forward(java.lang.String jsp)
throws JspEngineException
forward in interface Destination
public void include(java.lang.String jsp)
throws JspEngineException
include in interface Destinationjsp - if it ends in .jsp it is treated as a MyJasper jsp from the current jsp root directory
if not is is treated a a fileName on the local machine either abslolute (if it begins with X: or / or
relative to the current jsp root
|
JSPTemplates | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||