to.etc.template
Class ServletTplExpander

java.lang.Object
  extended by to.etc.template.TplExpander
      extended by to.etc.template.ServletTplExpander

Deprecated.

@Deprecated
public class ServletTplExpander
extends TplExpander

VERY OLD - DO NOT USE

Author:
Frits Jalvingh Created on Nov 25, 2010

Field Summary
protected  javax.servlet.http.HttpServletRequest m_req
          Deprecated.  
protected  javax.servlet.http.HttpServletResponse m_res
          Deprecated.  
 
Fields inherited from class to.etc.template.TplExpander
m_cb, m_hostname, m_hostport, m_hosturl, m_servlet_basepath, m_servlet_fullpath
 
Constructor Summary
ServletTplExpander(TplCallback cb)
          Deprecated.  
ServletTplExpander(TplCallback cb, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Deprecated.  
 
Method Summary
 void expand(java.io.InputStream is)
          Deprecated. Expands the template from the input-stream to the output-stream, using the specified context.
protected  java.lang.Object findPredef(java.lang.String name)
          Deprecated. If the name passed is a predefined name this function will return the result object for the name.
 int getParmInt(java.lang.String name)
          Deprecated.  
 java.lang.String getParmStr(java.lang.String name)
          Deprecated.  
 java.lang.String getParmStr(java.lang.String name, boolean req)
          Deprecated.  
protected  java.lang.String getServletFullPath()
          Deprecated.  
protected  void handlerInit()
          Deprecated. This gets called directly after the 1st request is received.
protected  java.lang.Object locateName(java.lang.String name)
          Deprecated. Locates a root name.
 void putFormAs(java.lang.String name)
          Deprecated. This method posts the "get from form" method for fields.
protected  void setNoCache()
          Deprecated. Makes sure the document is not cached at the client's station.
 
Methods inherited from class to.etc.template.TplExpander
expand, expand, expand, findName, putDummy, putGetter, slconc
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_req

protected javax.servlet.http.HttpServletRequest m_req
Deprecated. 

m_res

protected javax.servlet.http.HttpServletResponse m_res
Deprecated. 
Constructor Detail

ServletTplExpander

public ServletTplExpander(TplCallback cb)
Deprecated. 

ServletTplExpander

public ServletTplExpander(TplCallback cb,
                          javax.servlet.http.HttpServletRequest req,
                          javax.servlet.http.HttpServletResponse res)
Deprecated. 
Method Detail

getParmStr

public java.lang.String getParmStr(java.lang.String name)
Deprecated. 

getParmStr

public java.lang.String getParmStr(java.lang.String name,
                                   boolean req)
                            throws javax.servlet.ServletException
Deprecated. 
Throws:
javax.servlet.ServletException

getParmInt

public int getParmInt(java.lang.String name)
Deprecated. 

setNoCache

protected void setNoCache()
Deprecated. 
Makes sure the document is not cached at the client's station.


handlerInit

protected void handlerInit()
Deprecated. 
This gets called directly after the 1st request is received. It extracts this-servlet's URL from the request URL and saves it.


getServletFullPath

protected java.lang.String getServletFullPath()
Deprecated. 

expand

public void expand(java.io.InputStream is)
            throws java.lang.Exception
Deprecated. 
Expands the template from the input-stream to the output-stream, using the specified context.

Throws:
java.lang.Exception

findPredef

protected java.lang.Object findPredef(java.lang.String name)
Deprecated. 
If the name passed is a predefined name this function will return the result object for the name. This is better than putting all predefined names in the hash table because many names must be computed, and building such a hash table takes time and resources (that are garbage after each request!). If the name passed is not a predefined name the routine returns null.

Overrides:
findPredef in class TplExpander

locateName

protected java.lang.Object locateName(java.lang.String name)
                               throws TplException
Deprecated. 
Locates a root name. The name is first searched in this-context's hashtable; then all user functions are tried. This allows the put method to override all names!!

Overrides:
locateName in class TplExpander
Throws:
TplException

putFormAs

public void putFormAs(java.lang.String name)
Deprecated. 
This method posts the "get from form" method for fields. All references to the field specified will be resolved by asking if a form parameter exists. So a reference to 'user.loginid' would usually refer to a result set 'user' having a field 'loginid', but using this method it will return the "userid" parameter from the form's request.