public class Page extends TagSupport
<base:head>
and
<base:body>
tags on every JSP page in BASE.
Example:
<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %> <base:page type="default" title="Welcome to BASE"> <base:head> <!-- scripts and other head things... --> </base:head> <base:body> Page contents go here.... </base:body> </base:page>
Syntax:
<base:page type=default|popup|include title=... menu=... doctype=... >
Attribute | Default value | Required | Description |
type | default | no | The type of the page. Three values are defined:
|
title | - | yes | The title of the page. |
menu | auto | no |
The name of the menu to use on the page. This value is only used
for pages with type=default. See the /include/menu.jsp
file for defined menu names.
|
doctype | html | no | The doctype to use in the generated html page. The default is html which is the new HTML5 doctype. Use HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd" to get the older HTML 4 doctype. |
favicon | favicon.ico | no | The 'favicon' to use. |
Modifier and Type | Field and Description |
---|---|
private static String |
BASE_VERSION
The version of BASE.
|
private String |
doctype
The <!
|
private String |
favicon
The 'favicon' to use.
|
private static boolean |
initialized |
private static String |
MAX_URL_LENGTH |
private String |
menu
The name of the menu that should be displayed on the current page.
|
private boolean |
noSkin
Set to TRUE to not use skin on the page.
|
(package private) static int |
PAGE_TYPE_DEFAULT
This is the default page type.
|
(package private) static int |
PAGE_TYPE_IFRAME
The page is in a separate iframe .
|
(package private) static int |
PAGE_TYPE_INCLUDE
This page is an included page.
|
(package private) static int |
PAGE_TYPE_POPUP
The page is a popup dialouge.
|
private static String |
ROOT
The path to the root directory of this webserver.
|
private SessionControl |
sc
The SessionControl object in use for this request.
|
private static long |
serialVersionUID |
private static String |
SERVER_NAME
The name of this webserver.
|
private List<SkinAction> |
skinActions |
private JspContext |
skinContext |
private String |
title
The title of the page.
|
private int |
type
The type of the current page.
|
id, pageContext
EVAL_BODY_AGAIN
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
Constructor and Description |
---|
Page() |
Modifier and Type | Method and Description |
---|---|
int |
doEndTag() |
int |
doStartTag() |
String |
getBaseVersion() |
String |
getDoctype() |
String |
getFavicon() |
String |
getMaxUrlLength() |
String |
getMenu() |
boolean |
getNoSkin() |
String |
getRoot() |
String |
getServerName() |
SessionControl |
getSessionControl() |
List<SkinAction> |
getSkinActions()
Get all skin extension actions.
|
JspContext |
getSkinContext()
Get the JSP context used for invoking skin extensions.
|
String |
getTitle() |
int |
getTypeCode() |
private static void |
initStaticFields(PageContext pageContext)
Initialize static fields.
|
static String |
ROOT()
Static version of
getRoot() . |
void |
setDoctype(String doctype) |
void |
setFavicon(String favicon) |
void |
setMenu(String menu) |
void |
setNoskin(boolean noSkin)
Set to TRUE to disable skins.
|
void |
setPageContext(PageContext pageContext) |
void |
setTitle(String title) |
void |
setType(String type) |
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setParent, setValue
private static final long serialVersionUID
static final int PAGE_TYPE_DEFAULT
static final int PAGE_TYPE_POPUP
static final int PAGE_TYPE_INCLUDE
static final int PAGE_TYPE_IFRAME
private String title
private String menu
private boolean noSkin
private String doctype
private int type
private String favicon
private static volatile boolean initialized
private static String SERVER_NAME
private static String ROOT
private static String BASE_VERSION
private static String MAX_URL_LENGTH
private transient SessionControl sc
private transient JspContext skinContext
private transient List<SkinAction> skinActions
private static void initStaticFields(PageContext pageContext)
public void setMenu(String menu)
public String getMenu()
public void setTitle(String title)
public String getTitle()
public void setNoskin(boolean noSkin)
public boolean getNoSkin()
public void setType(String type)
public int getTypeCode()
public void setDoctype(String doctype)
public String getDoctype()
public void setFavicon(String favicon)
public String getFavicon()
public String getRoot()
public String getMaxUrlLength()
public String getServerName()
public String getBaseVersion()
public SessionControl getSessionControl()
public JspContext getSkinContext()
public List<SkinAction> getSkinActions()
public void setPageContext(PageContext pageContext)
setPageContext
in interface Tag
setPageContext
in class TagSupport
public int doStartTag() throws JspException
doStartTag
in interface Tag
doStartTag
in class TagSupport
JspException
public int doEndTag() throws JspException
doEndTag
in interface Tag
doEndTag
in class TagSupport
JspException