|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectTagSupport
org.apache.struts.taglib.bean.IncludeTag
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().
Field Summary | |
protected java.lang.String |
anchor
The anchor to be added to the end of the generated hyperlink. |
protected static int |
BUFFER_SIZE
Buffer size to use when reading the input stream. |
protected java.lang.String |
forward
The name of the global ActionForward that contains a
path to our requested resource. |
protected java.lang.String |
href
The absolute URL to the resource to be included. |
protected java.lang.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 java.lang.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
|
Constructor Summary | |
IncludeTag()
|
Method Summary | |
protected void |
addCookie(java.net.URLConnection conn,
java.lang.String urlString,
HttpServletRequest request)
Add a session id cookie if appropriate. |
int |
doStartTag()
Define the contents returned for the specified resource as a page scope attribute. |
java.lang.String |
getAnchor()
|
java.lang.String |
getForward()
|
java.lang.String |
getHref()
|
java.lang.String |
getId()
|
java.lang.String |
getPage()
|
boolean |
getTransaction()
|
boolean |
isUseLocalEncoding()
|
void |
release()
Release all allocated resources. |
void |
setAnchor(java.lang.String anchor)
|
void |
setForward(java.lang.String forward)
|
void |
setHref(java.lang.String href)
|
void |
setId(java.lang.String id)
|
void |
setName(java.lang.String name)
Deprecated. use setPage(String) instead |
void |
setPage(java.lang.String page)
|
void |
setTransaction(boolean transaction)
|
void |
setUseLocalEncoding(boolean b)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final int BUFFER_SIZE
protected java.lang.String anchor
protected java.lang.String forward
ActionForward
that contains a
path to our requested resource.
protected java.lang.String href
protected java.lang.String id
protected static MessageResources messages
protected java.lang.String page
protected boolean transaction
protected boolean useLocalEncoding
Constructor Detail |
public IncludeTag()
Method Detail |
public java.lang.String getAnchor()
public void setAnchor(java.lang.String anchor)
public java.lang.String getForward()
public void setForward(java.lang.String forward)
public java.lang.String getHref()
public void setHref(java.lang.String href)
public java.lang.String getId()
public void setId(java.lang.String id)
public void setName(java.lang.String name)
public java.lang.String getPage()
public void setPage(java.lang.String page)
public boolean getTransaction()
public void setTransaction(boolean transaction)
public boolean isUseLocalEncoding()
public void setUseLocalEncoding(boolean b)
public int doStartTag() throws JspException
JspException
- if a JSP error occursprotected void addCookie(java.net.URLConnection conn, java.lang.String urlString, HttpServletRequest request)
conn
- urlString
- request
- public void release()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |