Skip to content

Commit 8952e27

Browse files
committed
jsp tag
1 parent ad8a3cc commit 8952e27

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<%@tag pageEncoding="UTF-8"%>
2+
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
3+
<%@ attribute name="name" type="java.lang.String" required="true"%>
4+
<h1>func param:${name}</h1>
File renamed without changes.

src/main/webapp/test.jsp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<%@ taglib prefix="l2d" uri="/WEB-INF/LongToDateTag.tld"%>
44
<%@ taglib prefix='fmt' uri="http://java.sun.com/jsp/jstl/fmt" %>
55
<%@taglib prefix="spring" uri="http://www.springframework.org/tags" %>
6-
<%@ taglib prefix="tags" tagdir="/WEB-INF/" %>
6+
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
77
<!DOCTYPE html>
88
<html>
99
<head>
@@ -21,6 +21,7 @@
2121
<span style="color:green;">user</span>:${user}<br />
2222
<span style="color:red;">u</span>:${u}
2323
<hr/>
24-
<tag:hello name="world" />
24+
<tags:hello name="world"></tags:hello>
25+
<tags:func name="func"></tags:func>
2526
</body>
2627
</html>

0 commit comments

Comments
 (0)