net.sf.basedb.clients.web.taglib
Class Head
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
net.sf.basedb.clients.web.taglib.Head
- All Implemented Interfaces:
- Serializable, IterationTag, JspTag, Tag
public class Head
- extends TagSupport
This tag defines the header section of a page. It must be located inside
a <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.
|
- Version:
- 2.0
- Author:
- Nicklas
- See Also:
- Serialized Form
Constructor Summary |
Head()
|
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
page
private Page page
- The parent <base:page> tag.
styles
private String styles
- A comma-separated list of stylesheets filenames.
scripts
private String scripts
- A comma-separated list of JavaScript filenames.
Head
public Head()
setStyles
public void setStyles(String styles)
getStyles
public String getStyles()
setScripts
public void setScripts(String scripts)
getScripts
public String getScripts()
appendStyles
private void appendStyles(StringBuilder sb,
SessionControl sc,
boolean hideLongTexts)
appendScripts
private void appendScripts(StringBuilder sb,
boolean scanForLongTexts)
doStartTag
public int doStartTag()
throws JspException
- Specified by:
doStartTag
in interface Tag
- Overrides:
doStartTag
in class TagSupport
- Throws:
JspException
doEndTag
public int doEndTag()
throws JspException
- Specified by:
doEndTag
in interface Tag
- Overrides:
doEndTag
in class TagSupport
- Throws:
JspException