|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.jsp.tagext.TagSupport net.sf.basedb.clients.web.taglib.Page
public class Page
This tag should be used together with the <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|frameset|include title=... menu=... >
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 | standard | 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.
|
Field Summary | |
---|---|
private static String |
BASE_VERSION
The version of BASE. |
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. |
(package private) static int |
PAGE_TYPE_DEFAULT
This is the default page type. |
(package private) static int |
PAGE_TYPE_FRAMESET
The page is a frameset. |
(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 String |
title
The title of the page. |
private int |
type
The type of the current page. |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
id, 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 | |
---|---|
Page()
|
Method Summary | |
---|---|
int |
doEndTag()
|
int |
doStartTag()
|
String |
getBaseVersion()
|
String |
getMaxUrlLength()
|
String |
getMenu()
|
String |
getRoot()
|
String |
getServerName()
|
SessionControl |
getSessionControl()
|
String |
getTitle()
|
int |
getTypeCode()
|
private static void |
initStaticFields(PageContext pageContext)
Initialize static fields. |
void |
setMenu(String menu)
|
void |
setPageContext(PageContext pageContext)
|
void |
setTitle(String title)
|
void |
setType(String type)
|
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setParent, setValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
static final int PAGE_TYPE_DEFAULT
static final int PAGE_TYPE_POPUP
static final int PAGE_TYPE_FRAMESET
static final int PAGE_TYPE_INCLUDE
private String title
private String menu
private int type
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
Constructor Detail |
---|
public Page()
Method Detail |
---|
private static void initStaticFields(PageContext pageContext)
public void setMenu(String menu)
public String getMenu()
public void setTitle(String title)
public String getTitle()
public void setType(String type)
public int getTypeCode()
public String getRoot()
public String getMaxUrlLength()
public String getServerName()
public String getBaseVersion()
public SessionControl getSessionControl()
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
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |