<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<c:set value="OK" var="login" scope="session"/>
<fmt:requestEncoding value="utf-8"/>
<c:choose>
<c:when test="${param.username != '' && param.password !=''}">
${param.username}
<c:redirect url="ok.jsp"/>
</c:when>
<c:otherwise>
<c:redirect url="fail.jsp"/>
</c:otherwise>
</c:choose>
沒有留言:
張貼留言