se.lu.thep.waf
Class Layout

java.lang.Object
  extended by se.lu.thep.waf.Layout

public abstract class Layout
extends java.lang.Object

Layout represents the current view of your application. In it's simples form it only contains a reference to a template. The ActionServlet forwards the request to the template returned by getTemplate().

Author:
gregory

Field Summary
protected static org.apache.log4j.Logger log
          Logger identified by 'se.lu.thep.waf.Layout'
 
Constructor Summary
Layout()
           
 
Method Summary
 Tag getHtml(java.lang.String contextPath, javax.servlet.http.HttpServletRequest request)
          Converts a layout to a html representation Tag object.
 java.lang.String getTemplate()
           
 void setTemplate(java.lang.String template)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final org.apache.log4j.Logger log
Logger identified by 'se.lu.thep.waf.Layout'

Constructor Detail

Layout

public Layout()
Method Detail

getTemplate

public java.lang.String getTemplate()
Returns:
the template used for this layout or null if none has been set.

setTemplate

public void setTemplate(java.lang.String template)
Parameters:
template - to use in this layout

getHtml

public Tag getHtml(java.lang.String contextPath,
                   javax.servlet.http.HttpServletRequest request)
Converts a layout to a html representation Tag object. Override this method if you are not using templates for response.

Parameters:
contextPath -
request -
Returns:
null