org.apache.struts.taglib.bean
public class IncludeTag extends TagSupport
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().
Version: $Rev: 54929 $ $Date: 2004-10-16 17:38:42 +0100 (Sat, 16 Oct 2004) $
| 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 |
| 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 | setName(String name)
Deprecated method to set the "name" attribute, which has been
replaced by the "page" attribute.
|
| void | setPage(String page) |
| void | setTransaction(boolean transaction) |
| void | setUseLocalEncoding(boolean b) |
ActionForward that contains a
path to our requested resource.Parameters: conn urlString request
Since: Struts 1.2.0
Throws: JspException if a JSP error occurs
Deprecated: use setPage(String) instead
Deprecated method to set the "name" attribute, which has been replaced by the "page" attribute.