OSDN Git Service

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