|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.jsp.tagext.SimpleTagSupport
com.webhydra.slug.tld.ClassDefTagHandler
public class ClassDefTagHandler
Genrates all Slug related JavaScript Classes.
Inline and externl format are supported based on the src. If
src parameter is ommited classes are defined inline. When
src is specified, then external javascript definition is generated.
Two different formationgs - HTML 4.1 and XHTML 1.0 are supported and determined
based on the xmlFormating property. When it is defined and set to
true XHTML 1.0 script is generated. In all other cases HTML 4.1
compatible script is produced.
<%@taglib uri="http://slug.webhydra.com/jstl/slug" prefix="slug" %> <slug:script src="/myapp/slugJs.jsp" xmlFprmat="true" />
<%@taglib uri="http://slug.webhydra.com/jstl/slug" prefix="slug" %> <slug:script />
| Field Summary | |
|---|---|
static java.lang.String |
JAVA_SCRIPT_SRC
Constant holding the Slug JavaScript definitions. |
| Constructor Summary | |
|---|---|
ClassDefTagHandler()
|
|
| Method Summary | |
|---|---|
void |
doTag()
Generates Slug related JavaScript opbjects. |
void |
setRawScript(boolean rawScript)
Setter for property rawScript. |
void |
setSrc(java.lang.String value)
Setter for the src attribute. |
void |
setXmlFormat(boolean value)
Setter for the xml attribute. |
| Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport |
|---|
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String JAVA_SCRIPT_SRC
| Constructor Detail |
|---|
public ClassDefTagHandler()
| Method Detail |
|---|
public void doTag()
throws javax.servlet.jsp.JspException
doTag in interface javax.servlet.jsp.tagext.SimpleTagdoTag in class javax.servlet.jsp.tagext.SimpleTagSupportjavax.servlet.jsp.JspExceptionpublic void setSrc(java.lang.String value)
value - new value for the src property.public void setXmlFormat(boolean value)
value - new value for the xml property.public void setRawScript(boolean rawScript)
rawScript - New value of property rawScript.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||