public class Head extends TagSupport
<base:page>
ag.
Syntax:
<base:head styles=... scripts=... >
Attribute | Default value | Required | Description |
styles | - | no |
A comma-separated list of stylesheet filenames that is needed by the page.
The main.css are menu.css automatically included.
The stylesheets must be located in the /include/styles folder.
Do not include the folder names in the stylesheet filename.
|
scripts | - | no |
A comma-separated list of javascript filenames that is needed by the page.
The main.js are menu.js automatically included.
The scripts must be located in the /include/scripts folder.
Do not include the folder names in the scripts filename.
|
Modifier and Type | Field and Description |
---|---|
private Page |
page
The parent <base:page> tag.
|
private String |
scripts
A comma-separated list of JavaScript filenames.
|
private static long |
serialVersionUID |
private String |
styles
A comma-separated list of stylesheets filenames.
|
id, pageContext
EVAL_BODY_AGAIN
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
Constructor and Description |
---|
Head() |
Modifier and Type | Method and Description |
---|---|
private void |
appendScripts(StringBuilder sb) |
private void |
appendStyles(StringBuilder sb,
String fontStyles,
boolean hideLongTexts) |
int |
doEndTag() |
int |
doStartTag() |
String |
getScripts() |
String |
getStyles() |
void |
setScripts(String scripts) |
void |
setStyles(String styles) |
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
private static final long serialVersionUID
private Page page
private String styles
private String scripts
public void setStyles(String styles)
public String getStyles()
public void setScripts(String scripts)
public String getScripts()
private void appendStyles(StringBuilder sb, String fontStyles, boolean hideLongTexts)
private void appendScripts(StringBuilder sb)
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