archieve: homework5 c_choose.jsp

This commit is contained in:
2025-04-21 14:17:00 +08:00
parent c910a8a287
commit daee8a85f4
3 changed files with 29 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
<component name="CopyrightManager">
<settings>
<LanguageOptions name="JSP">
<option name="fileTypeOverride" value="1" />
<option name="prefixLines" value="false" />
</LanguageOptions>
</settings>
</component>
+1
View File
@@ -3,6 +3,7 @@
<component name="WebContextManager">
<option name="state">
<map>
<entry key="file://$PROJECT_DIR$/src/main/webapp/c_choose.jsp" value="file://$PROJECT_DIR$/src/main/webapp" />
<entry key="file://$PROJECT_DIR$/src/main/webapp/if.jsp" value="file://$PROJECT_DIR$/src/main/webapp" />
</map>
</option>
+20
View File
@@ -0,0 +1,20 @@
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
<title>Title</title>
</head>
<body>
<c:choose>
<c:when test="S{empty param.username}">
unKnown user.
</c:when>
<c:when test="${param.username=='msksbr'}">
${param.username} is manager.
</c:when>
<c:otherwise>
${param.username} is employee.
</c:otherwise>
</c:choose>
</body>
</html>