Java EE practical tutorial (3rd edition) programming textbook example 78 [3.8], familiar if, elseif and else tags usage

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.
This link: https://blog.csdn.net/weixin_42429718/article/details/102662197

Programming textbook example 3.8 [78], are familiar with the use if, elseif and else tags

Here Insert Picture Description


Renderings
Here Insert Picture Description

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>
学如逆水行舟,不进则退

Guess you like

Origin blog.csdn.net/weixin_42429718/article/details/102662197