|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object VelocityServlet net.sf.scmwebgui.TemplateServlet
public class TemplateServlet
TemplateServlet uses jakarta's Velocity project to return the GUI for the
user. The template to be rendered is searched by
TemplateFinder
, given the template name specified
by the user in CtxURI.getTemplate()
.
Templates will have the following context attributes for painting:
User
) that
accessesProject
)Category
)Category
), from the root category (the
project)Content
)TemplateFinder
), used to find templates to include.
ResourceBundleWrapper
)CtxURI
)
to build URIsIActionHandler
) to execute.
Constructor Summary | |
---|---|
TemplateServlet()
|
Method Summary | |
---|---|
Template |
handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Context ctx)
main routine to handle a request. |
void |
init(javax.servlet.ServletConfig config)
Initializes the servlet |
protected java.util.Properties |
loadConfiguration(javax.servlet.ServletConfig config)
Called by the VelocityServlet init(). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TemplateServlet()
Method Detail |
---|
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
javax.servlet.ServletException
protected java.util.Properties loadConfiguration(javax.servlet.ServletConfig config) throws java.io.IOException, java.io.FileNotFoundException
java.io.IOException
java.io.FileNotFoundException
public Template handleRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Context ctx) throws java.io.IOException
main routine to handle a request. Called by VelocityServlet. In this handler we return the setted template, or the setted error template
ctx
- a Velocity Context object to be filled with data. Will be used
for rendering this template
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |