OSDN Git Service

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