Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <c:if test="${!isLoggedIn}">
- <div class="sectionFlat">
- <%
- Cookie[] cookies = request.getCookies();
- Cookie user = null;
- for (int i = 0; i < cookies.length; i += 1) {
- if (cookies[i].getName().equals("username")) {
- user = cookies[i];
- break;
- }
- }
- %>
- <form name="login_form" action="/mobile/home" method="post">
- <div class="sectionTitle">Sign In</div>
- <H4>User ID:</H4>
- <div style="width: 100%;">
- <input id="username" name="username" type="text" maxlength="255" value="${user.value}"
- class="signin <%=(request.getAttribute("usernameMissing") != null ? "textboxError"
- : "")%>" />
- </div>
- <c:if test="${requestScope.usernameMissing}">
- <div class="errorMsgText">Please enter a valid User ID.</div>
- </c:if>
- <H4>Password:</H4>
- <div style="width: 100%;">
- <input id="pass" name="pass" type="password" maxlength="255"
- value="${param.pass}"
- class="signin <%= (request.getAttribute("passwordMissing") != null ? "textboxError" : "" )%>" />
- </div>
- <c:if test="${requestScope.passwordMissing}">
- <div class="errorMsgText">Please enter your password.</div>
- </c:if>
- <table width="100%" cellpadding=0 cellspacing=0
- style="padding: 5px 0px 10px 0px;">
- <tr>
- <td align=left><input type="checkbox" id="rememberMe"
- name="rememberMe" /> <label for="rememberMe">Remember
- Me</label></td>
- <td align=right>
- <button type="submit" value="Sign In" class="signinBtn"> </button>
- </td>
- </tr>
- </table>
- </form>
Add Comment
Please, Sign In to add comment