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

java.lang.Object
  extended byorg.apache.turbine.util.DynamicURI
      extended byorg.apache.turbine.services.jsp.util.JspLink
All Implemented Interfaces:
URI

Deprecated. Use instead.

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

Version:
$Id: JspLink.java 534872 2007-05-03 14:07:18Z tv $
Author:
John McNally, Dave Bryson, Jon S. Stevens jon@latchkey.com, Henning P. Schmiedehausen

Field Summary
 
Fields inherited from class org.apache.turbine.util.DynamicURI
data, hasPathInfo, hasQueryData, HTTP, HTTPS, PATH_INFO, pathInfo, QUERY_DATA, queryData, redirect, reference, res, sd
 
Constructor Summary
JspLink(RunData data)
          Deprecated. Constructor
 
Method Summary
 JspLink setPage(java.lang.String t)
          Deprecated. Sets the template variable used by the WebMacroSite Service
 java.lang.String toString()
          Deprecated. 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, assertInitialized, getA, getContextPath, getReference, getScriptName, getServerData, getServerName, getServerPort, getServerScheme, init, init, remove, removePathInfo, removePathInfo, removeQueryData, removeQueryData, renderPathInfo, renderQueryString, setAction, setActionEvent, setContextPath, 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)
Deprecated. 
Constructor

Parameters:
data - A Rundata Object
Method Detail

toString

public java.lang.String toString()
Deprecated. 
Returns the URI

Overrides:
toString in class DynamicURI
Returns:
String the uri http://foo.com/...

setPage

public JspLink setPage(java.lang.String t)
Deprecated. 
Sets the template variable used by the WebMacroSite Service

Returns:
JspLink


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