Add JSTL to JSP sample
parent
f4f668a52b
commit
3f1cfbf241
@ -1,12 +1,16 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
|
|
||||||
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
|
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
|
||||||
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||||||
|
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
<c:url value="/resources/text.txt" var="url"/>
|
||||||
<spring:url value="/resources/text.txt" htmlEscape="true" var="springUrl" />
|
<spring:url value="/resources/text.txt" htmlEscape="true" var="springUrl" />
|
||||||
${springUrl}
|
Spring URL: ${springUrl} at ${time}
|
||||||
|
<br>
|
||||||
|
JSTL URL: ${url}
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
Reference in New Issue