Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
Programming textbook example 3.8 [78], are familiar with the use if, elseif and else tags
Renderings
index.jsp
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<html>
<head>
<title>if else 标签</title>
</head>
<body>
<s:if test="false">
1
</s:if>
<s:elseif test="false">
2
</s:elseif>
<s:else>
YCY
</s:else>
</body>
</html>
学如逆水行舟,不进则退