org.apache.turbine.services.jsp.util
Class JspLink

java.lang.Object
  |
  +--org.apache.turbine.util.DynamicURI
        |
        +--org.apache.turbine.services.jsp.util.JspLink

public class JspLink
extends DynamicURI

A customized version of the DynamicURI to be used in JSP templates. This is automatically inserted into the request so page authors can create links in templates. Here's an example of its use:
<%= link.setPage("index.jsp").setPathInfo("key", "value") %> This would return: http://foo.com/myapp/servlet/Turbine/key/value/template/index.jsp

Author:
John McNally, Dave Brysonmbryson@mont.mindspring.com, Jon S. Stevens jon@latchkey.com

Fields inherited from class org.apache.turbine.util.DynamicURI
data, hasPathInfo, hasQueryData, HTTP, HTTPS, PATH_INFO, pathInfo, QUERY_DATA, queryData, redirect, reference, res, scriptName, sd, serverName, serverPort, serverScheme
 
Constructor Summary
JspLink(RunData data)
          Constructor
 
Method Summary
 JspLink setPage(java.lang.String t)
          Sets the template variable used by the WebMacroSite Service
 java.lang.String toString()
          Returns the URI
 
Methods inherited from class org.apache.turbine.util.DynamicURI
add, add, addPathInfo, addPathInfo, addPathInfo, addPathInfo, addPathInfo, addPathInfo, addQueryData, addQueryData, addQueryData, addQueryData, addQueryData, addQueryData, getA, getReference, getScriptName, getServerData, getServerName, getServerPort, getServerScheme, init, init, init, remove, removePathInfo, removePathInfo, removeQueryData, removeQueryData, renderPathInfo, renderQueryString, setAction, setReference, setScreen, setScriptName, setSecure, setSecure, setServerData, setServerName, setServerPort, setServerScheme, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JspLink

public JspLink(RunData data)
Constructor
Method Detail

toString

public java.lang.String toString()
Returns the URI
Overrides:
toString in class DynamicURI
Returns:
String the uri http://foo.com/...

setPage

public JspLink setPage(java.lang.String t)
Sets the template variable used by the WebMacroSite Service
Parameters:
String - the template name
Returns:
JspLink


Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.