test_param.jsp
来自「jakarta-taglibs」· JSP 代码 · 共 37 行
JSP
37 行
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<%@ taglib uri="http://jakarta.apache.org/taglibs/xtags-1.0" prefix="xtags" %>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Test Params</title>
<link rel="stylesheet" href="../examples.css" type="text/css">
</head>
<body>
<h1>Test Params</h1>
<p>This demo shows the use of the choose tag without any XML input.</p>
<p> The request parameter <i>param</i> has value:
<b>
<xtags:choose>
<xtags:when test="$param='1'">
One
</xtags:when>
<xtags:when test="$param='2'">
Two
</xtags:when>
<xtags:when test="$param='3'">
Three
</xtags:when>
<xtags:otherwise>
No param value specified, or an unknown value!
</xtags:otherwise>
</xtags:choose>
</b>
</p>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?