Advertisement
Guest User

Untitled

a guest
Dec 25th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.37 KB | None | 0 0
  1. <%@page import="JavaBeans.ProductList"%>
  2. <%@page import="java.util.Locale"%>
  3. <%@page import="java.util.ResourceBundle"%>
  4. <%@taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
  5. <%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt"%>
  6. <%@ taglib prefix="f" uri="/WEB-INF/tag1.tld" %>
  7.  
  8. <%@page isELIgnored="false"%>
  9. <%@page contentType="text/html" pageEncoding="UTF-8"%>
  10.  
  11.  
  12. <!DOCTYPE html>
  13. <head>
  14.     <!--Обработка GET-параметров: установка языка.-->
  15.     <c:if test="${empty sessionScope.locale}">
  16.         <fmt:setLocale value="ru"/>
  17.     </c:if>
  18.     <c:if test="${not empty param.russian}">
  19.         <fmt:setLocale value="ru"/>
  20.     </c:if>
  21.     <c:if test="${not empty param.english}">
  22.         <fmt:setLocale value="en"/>
  23.     </c:if>
  24.     <c:if test="${not empty param.german}">
  25.         <fmt:setLocale value="de"/>
  26.     </c:if>
  27.     <fmt:setBundle basename="Properties/message"/>
  28.     <jsp:include page="Header.jsp"/>  
  29.     <link rel='stylesheet' href='Styles/styles.css' type='text/css' media='screen'/>
  30. </head>    
  31. <body>
  32.     ${pageContext.servletContext.log("Autorization...")}
  33.     <form class = 'form-4' action="j_security_check" method="POST">
  34.        Username:<input type="text" name="j_username"/><br>
  35.        Password:<input type="password" name="j_password"/>
  36.        <input type="submit" value="Login"/>
  37.     </form>
  38. </dody>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement