org.apache.struts.taglib.bean
Class IncludeTag
TagSupport
org.apache.struts.taglib.bean.IncludeTag
public class IncludeTag
extends TagSupport
Define the contents of a specified intra-application request as a
page scope attribute of type
java.lang.String
. If the
current request is part of a session, the session identifier will be
included in the generated request, so it will be part of the same
session.
FIXME: In a servlet 2.3 environment, we can use a
wrapped response passed to RequestDispatcher.include().
$Rev: 54929 $ $Date: 2004-10-16 17:38:42 +0100 (Sat, 16 Oct 2004) $protected static int | BUFFER_SIZE - Buffer size to use when reading the input stream.
|
protected String | anchor - The anchor to be added to the end of the generated hyperlink.
|
protected String | forward - The name of the global
ActionForward that contains a
path to our requested resource.
|
protected String | href - The absolute URL to the resource to be included.
|
protected String | id - The name of the scripting variable that will be exposed as a page
scope attribute.
|
protected static MessageResources | messages - The message resources for this package.
|
protected String | page - The context-relative URI of the page or servlet to be included.
|
protected boolean | transaction - Include transaction token (if any) in the hyperlink?
|
protected boolean | useLocalEncoding
|
BUFFER_SIZE
protected static final int BUFFER_SIZE
Buffer size to use when reading the input stream.
anchor
protected String anchor
The anchor to be added to the end of the generated hyperlink.
forward
protected String forward
The name of the global ActionForward
that contains a
path to our requested resource.
href
protected String href
The absolute URL to the resource to be included.
id
protected String id
The name of the scripting variable that will be exposed as a page
scope attribute.
messages
protected static MessageResources messages
The message resources for this package.
page
protected String page
The context-relative URI of the page or servlet to be included.
transaction
protected boolean transaction
Include transaction token (if any) in the hyperlink?
useLocalEncoding
protected boolean useLocalEncoding
addCookie
protected void addCookie(URLConnection conn,
String urlString,
HttpServletRequest request)
Add a session id cookie if appropriate. Can be overloaded to
support a cluster.
conn
- urlString
- request
-
doStartTag
public int doStartTag()
throws JspException
Define the contents returned for the specified resource as a
page scope attribute.
getAnchor
public String getAnchor()
getForward
public String getForward()
getHref
public String getHref()
getId
public String getId()
getPage
public String getPage()
getTransaction
public boolean getTransaction()
isUseLocalEncoding
public boolean isUseLocalEncoding()
release
public void release()
Release all allocated resources.
setAnchor
public void setAnchor(String anchor)
setForward
public void setForward(String forward)
setHref
public void setHref(String href)
setId
public void setId(String id)
setName
public void setName(String name)
use setPage(String) instead
Deprecated method to set the "name" attribute, which has been
replaced by the "page" attribute.
setPage
public void setPage(String page)
setTransaction
public void setTransaction(boolean transaction)
setUseLocalEncoding
public void setUseLocalEncoding(boolean b)
Copyright B) 2000-2007 - The Apache Software Foundation