org.apache.struts.taglib
Class LinkTag

org.apache.struts.taglib.LinkTag

public class LinkTag

Generate a URL-encoded hyperlink to the specified URI.

Version:
$Revision: 1.12 $ $Date: 2001/05/20 01:19:04 $
Author:
Craig R. McClanahan

Field Summary
protected  java.lang.String forward
          The logical forward name from which to retrieve the hyperlink URI.
protected  java.lang.String href
          The hyperlink URI.
protected static MessageResources messages
          The message resources for this package.
protected  java.lang.String name
          The JSP bean name for query parameters.
protected  java.lang.String property
          The JSP bean property name for query parameters.
protected  java.lang.String target
          The window target.
 
Constructor Summary
LinkTag()
           
 
Method Summary
 int doEndTag()
          Render the end of the hyperlink.
 int doStartTag()
          Render the beginning of the hyperlink.
 java.lang.String getForward()
          Return the logical forward name.
 java.lang.String getHref()
          Return the hyperlink URI.
 java.lang.String getName()
          Return the bean name.
 java.lang.String getProperty()
          Return the property name.
 java.lang.String getTarget()
          Return the window target.
protected  java.lang.String hyperlink()
          Return the specified hyperlink, modified as necessary with optional request parameters.
 void release()
          Release any acquired resources.
 void setForward(java.lang.String forward)
          Set the logical forward name.
 void setHref(java.lang.String href)
          Set the hyperlink URI.
 void setName(java.lang.String name)
          Set the bean name.
 void setProperty(java.lang.String property)
          Set the property name.
 void setTarget(java.lang.String target)
          Set the window target.
 

Field Detail

forward

protected java.lang.String forward
The logical forward name from which to retrieve the hyperlink URI.

href

protected java.lang.String href
The hyperlink URI.

messages

protected static MessageResources messages
The message resources for this package.

name

protected java.lang.String name
The JSP bean name for query parameters.

property

protected java.lang.String property
The JSP bean property name for query parameters.

target

protected java.lang.String target
The window target.
Constructor Detail

LinkTag

public LinkTag()
Method Detail

getForward

public java.lang.String getForward()
Return the logical forward name.

setForward

public void setForward(java.lang.String forward)
Set the logical forward name.
Parameters:
forward - The new logical forward name

getHref

public java.lang.String getHref()
Return the hyperlink URI.

setHref

public void setHref(java.lang.String href)
Set the hyperlink URI.
Parameters:
href - Set the hyperlink URI

getName

public java.lang.String getName()
Return the bean name.

setName

public void setName(java.lang.String name)
Set the bean name.
Parameters:
name - The bean name

getProperty

public java.lang.String getProperty()
Return the property name.

setProperty

public void setProperty(java.lang.String property)
Set the property name.
Parameters:
property - The property name

getTarget

public java.lang.String getTarget()
Return the window target.

setTarget

public void setTarget(java.lang.String target)
Set the window target.
Parameters:
target - The new window target

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Render the beginning of the hyperlink.
Throws:
JspException - if a JSP exception has occurred

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Render the end of the hyperlink.
Throws:
JspException - if a JSP exception has occurred

release

public void release()
Release any acquired resources.

hyperlink

protected java.lang.String hyperlink()
                              throws javax.servlet.jsp.JspException
Return the specified hyperlink, modified as necessary with optional request parameters.
Throws:
JspException - if an error occurs preparing the hyperlink


Copyright © 2000-2002 - Apache Software Foundation