Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <sql:setDataSource
- driver="com.mysql.jdbc.Driver"
- url="jdbc:mysql:///info330?user=jdbc&password=javasucks"
- scope="session"
- />
- <%-- Then, verify it's a good netid in the DB --%>
- <sql:query var="count">
- SELECT COUNT(netid) FROM player WHERE netid='${player.netid}'
- </sql:query>
- <%-- If there is no player with that netid, go back to login --%>
- <c:if test="${count.rowsByIndex[0][0] == 0}">
- <c:redirect url="login.jsp" />
- </c:if>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement