Skip to content

Commit 8f322e9

Browse files
committed
update
1 parent 0114704 commit 8f322e9

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/main/webapp/WEB-INF/hello.tag

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>hello:${name}</h1>

src/main/webapp/test.jsp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +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/" %>
67
<!DOCTYPE html>
78
<html>
89
<head>
@@ -19,5 +20,7 @@
1920
syn:${syn}<hr/>
2021
<span style="color:green;">user</span>:${user}<br />
2122
<span style="color:red;">u</span>:${u}
23+
<hr/>
24+
<tag:hello name="world" />
2225
</body>
2326
</html>

0 commit comments

Comments
 (0)