OSDN Git Service

Initial commit
[ultramonkey-l7/l7gui.git] / src / WebContent / so_executive.jsp
1 <%@ page
2         import="org.ultramonkey.l7.model.*,org.ultramonkey.l7.controller.*,org.ultramonkey.l7.view.*"
3         language="java" contentType="text/html; charset=UTF-8"
4         pageEncoding="UTF-8"%>
5
6 <%
7         /*
8          * check session
9          */
10     L7guiServletBase base = new L7guiServletBase();
11         if (session.isNew() || base.checkSession(session) == false) {
12                 MessageView error = new MessageView(41379,
13                 LogCategorySet.GUI_USER_AUTHENTICATION,
14                 Message.INVALID_SESSSION);
15                 session.setAttribute(SessionKeys.RESULT_MESSAGE, error);
16                 response.sendRedirect(RedirectPages.LOGIN);
17                 return;
18         }
19
20         /*
21          * get thread status
22          */
23         String threadStatus = (String) session
24                         .getAttribute(SessionKeys.THREAD_STATUS);
25         if (threadStatus == null) {
26                 MessageView error = new MessageView(41380,
27                 LogCategorySet.GUI_REDUNDANT, Message.UNEXPECTED_ERROR);
28                 session.setAttribute(SessionKeys.RESULT_MESSAGE, error);
29                 response.sendRedirect(RedirectPages.LOGIN);
30                 return;
31         } else if (threadStatus.equals(SessionKeys.THREAD_RUNNING)) {
32                 // nothing to do
33         } else if (threadStatus.equals(SessionKeys.THREAD_SUCCESS)) {
34                 response.sendRedirect(RedirectPages.SO_OK);
35                 return;
36         } else if (threadStatus.equals(SessionKeys.THREAD_FAIL)) {
37                 response.sendRedirect(RedirectPages.SO_NG);
38                 return;
39         } else {
40                 MessageView error = new MessageView(41381,
41                 LogCategorySet.GUI_REDUNDANT, Message.UNEXPECTED_ERROR);
42                 session.setAttribute(SessionKeys.RESULT_MESSAGE, error);
43                 response.sendRedirect(RedirectPages.LOGIN);
44                 return;
45         }
46 %>
47
48 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
49 <html>
50 <head>
51         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
52         <meta http-equiv="Pragma" content="no-cache">
53         <meta http-equiv="Cache-Control" content="no-cache">
54         <meta http-equiv="Expires" content="0"> 
55         <meta http-equiv="Content-Script-Type" content="text/javascript" />
56         <meta http-equiv="Content-Style-Type" content="text/css" />
57         <noscript>
58         <meta http-equiv="refresh"
59                 content="<%= RedirectPages.NOSCRIPT_TIME %>; url=<%= RedirectPages.LOGIN %>" />
60         </noscript>
61         <meta http-equiv="refresh" content="<%= RedirectPages.REFRESH_TIME %>" />
62         
63         <link rel="stylesheet" type="text/css" href="l7gui_basic_style.css" />
64         <link rel="shortcut icon" href="images/favicon.ico" />
65         <title>Running : Switch-Over</title>
66 </head>
67
68 <body>
69
70 <h1 class="title">Running : Switch-Over</h1>
71 <h2>Please wait.</h2>
72
73 </body>
74 </html>