public class ScriptsTag
extends javax.servlet.jsp.tagext.TagSupport
Add a HTML script tag linking to each the scripts in the PageDefinition object in the "page" attribute. The following line will appear in the output for each script.
<script language="JavaScript" src="/js/main.js"></script>
NOTE: The Scripts tag should only be used in the head section of a HTML page.
Example
<%@ taglib uri="http://dev.nhigh.com/taglibs/nhigh" prefix="nhigh" %>
<html>
<head>
<nhigh:Scripts />
</head>
.
.
</html>
page - A PageDefinition bean containing the defintion of
this page.Component.getScripts(),
PageController.getScripts(),
Serialized Form| Constructor and Description |
|---|
ScriptsTag() |
| Modifier and Type | Method and Description |
|---|---|
int |
doEndTag()
Process the end tag.
|
int |
doStartTag()
Process the start tag.
|
public int doEndTag()
throws javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspException - If there was an exception processing the tag.public int doStartTag()
throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspException - If there was an exception processing the tag.Copyright © 2015 Revolution Systems Inc.. All rights reserved.