Advertisement
kernel_memory_dump

Untitled

Feb 17th, 2014
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.84 KB | None | 0 0
  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2.     pageEncoding="UTF-8"%>
  3.    
  4.  <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
  5. <%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt"%>
  6. <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
  7. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  8.  
  9.    
  10. <c:if test="${requestScope.categories == null}">
  11.     <c:redirect url="./ReadCategoriesController" />
  12. </c:if>
  13. <html>
  14.     <head>
  15.         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  16.         <title>File upload</title>
  17.         <script type="text/javascript">
  18.             function checkStatus(){
  19.                 param = window.location.search;
  20.                 if(param.indexOf("?") != -1){
  21.                     message = param.split("?");
  22.                     if(message == ",success"){
  23.                         document.getElementById("message").innerHTML = "File upload successful";
  24.                     }else{
  25.                         document.getElementById("message").innerHTML = "File upload failed";
  26.                     }
  27.                 }
  28.             }
  29.         </script>
  30.     </head>
  31.     <body>
  32.         <center>
  33.         <img alt="logo" src="ftn.jpg" width="150px" height="150px">
  34.         <br/>
  35.         <br><span id="message" style="color:red;font-size:20px">&nbsp;</span>
  36.         <form action="Upload" method="post" accept-charset="UTF-8" enctype="multipart/form-data">
  37.             <table>
  38.                 <tr><td>Document</td><td><input type="file" name="doc"/></td></tr>
  39.                 <tr><td colspan="2"><input type="submit" value="Confirm"/></td></tr>       
  40.                 <tr><td>Kategorije</td>
  41.                 <td>
  42.                     <select>
  43.                     <c:forEach items="${categories}" var="category">
  44.                     <option value="${category.id}">${category.name}</option>
  45.                     </c:forEach>   
  46.                     </select>
  47.                 </td>
  48.                 </tr>      
  49.             </table>
  50.         </form>
  51.         </center>
  52.         <script type="text/javascript">
  53.             checkStatus();
  54.         </script>
  55.        
  56.         Back to:
  57.         <br><a href="search.jsp">search</a>
  58.        
  59.     </body>
  60. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement