|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.jsp.tagext.TagSupport org.apache.struts.taglib.bean.IncludeTag
public class 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 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 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
|
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
---|
EVAL_BODY_AGAIN |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Constructor Summary | |
---|---|
IncludeTag()
|
Method Summary | |
---|---|
protected void |
addCookie(URLConnection conn,
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. |
String |
getAnchor()
|
String |
getForward()
|
String |
getHref()
|
String |
getId()
|
String |
getPage()
|
boolean |
getTransaction()
|
boolean |
isUseLocalEncoding()
|
void |
release()
Release all allocated resources. |
void |
setAnchor(String anchor)
|
void |
setForward(String forward)
|
void |
setHref(String href)
|
void |
setId(String id)
|
void |
setPage(String page)
|
void |
setTransaction(boolean transaction)
|
void |
setUseLocalEncoding(boolean b)
|
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
doAfterBody, doEndTag, findAncestorWithClass, getParent, getValue, getValues, removeValue, setPageContext, setParent, setValue |
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 static MessageResources messages
protected String anchor
protected String forward
ActionForward
that contains a path
to our requested resource.
protected String href
protected String id
protected String page
protected boolean transaction
protected boolean useLocalEncoding
Constructor Detail |
---|
public IncludeTag()
Method Detail |
---|
public String getAnchor()
public void setAnchor(String anchor)
public String getForward()
public void setForward(String forward)
public String getHref()
public void setHref(String href)
public String getId()
getId
in class TagSupport
public void setId(String id)
setId
in class TagSupport
public String getPage()
public void setPage(String page)
public boolean getTransaction()
public void setTransaction(boolean transaction)
public boolean isUseLocalEncoding()
public void setUseLocalEncoding(boolean b)
public int doStartTag() throws JspException
doStartTag
in interface Tag
doStartTag
in class TagSupport
JspException
- if a JSP error occursprotected void addCookie(URLConnection conn, String urlString, HttpServletRequest request)
conn
- urlString
- request
- public void release()
release
in interface Tag
release
in class TagSupport
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |