Package org.apache.struts2.components
Class WebJar
java.lang.Object
org.apache.struts2.components.Component
org.apache.struts2.components.ContextBean
org.apache.struts2.components.WebJar
Resolves a version-less WebJar resource path to a servable URL and writes it to the output
(or stores it in a variable when var is set). Compose it with <s:script>/<s:link>
or a raw <link>/<script> element.
<link rel="stylesheet" href="<s:webjar path="bootstrap/css/bootstrap.min.css" />" /> <@s.webjar path="jquery/jquery.min.js"/>
-
Field Summary
FieldsFields inherited from class org.apache.struts2.components.ContextBean
varFields inherited from class org.apache.struts2.components.Component
actionMapper, attributes, COMPONENT_STACK, devMode, escapeHtmlBody, performClearTagStateForTagPoolingServers, stack, standardAttributesMap, throwExceptionOnELFailure -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCallback for the end tag of this component.voidvoidsetWebJarUrlProvider(WebJarUrlProvider webJarUrlProvider) Methods inherited from class org.apache.struts2.components.ContextBean
getVar, putInContext, setVarMethods inherited from class org.apache.struts2.components.Component
addAllAttributes, addParameter, clearStandardAttributesMap, completeExpression, copyAttributes, determineActionURL, determineNamespace, end, escapeHtmlBody, fieldError, findAncestor, findString, findString, findValue, findValue, findValue, getAttributes, getComponentStack, getNamespace, getPerformClearTagStateForTagPoolingServers, getStack, getStandardAttributes, isAcceptableExpression, isValidTagAttribute, popComponentStack, setActionMapper, setDevMode, setEscapeHtmlBody, setNotExcludedAcceptedPatterns, setPerformClearTagStateForTagPoolingServers, setThrowExceptionsOnELFailure, setUrlHelper, start, stripExpression, toString, usesBody
-
Field Details
-
path
-
-
Constructor Details
-
WebJar
-
-
Method Details
-
setWebJarUrlProvider
-
end
Description copied from class:ComponentCallback for the end tag of this component. Should the body be evaluated again?
NOTE: will pop component stack. -
setPath
-