archieve: homework5 c_choose.jsp
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
|||||||
|
<component name="CopyrightManager">
|
||||||
|
<settings>
|
||||||
|
<LanguageOptions name="JSP">
|
||||||
|
<option name="fileTypeOverride" value="1" />
|
||||||
|
<option name="prefixLines" value="false" />
|
||||||
|
</LanguageOptions>
|
||||||
|
</settings>
|
||||||
|
</component>
|
||||||
Generated
+1
@@ -3,6 +3,7 @@
|
|||||||
<component name="WebContextManager">
|
<component name="WebContextManager">
|
||||||
<option name="state">
|
<option name="state">
|
||||||
<map>
|
<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" />
|
<entry key="file://$PROJECT_DIR$/src/main/webapp/if.jsp" value="file://$PROJECT_DIR$/src/main/webapp" />
|
||||||
</map>
|
</map>
|
||||||
</option>
|
</option>
|
||||||
|
|||||||
@@ -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>
|
||||||
Reference in New Issue
Block a user