add jstl support for this project
This commit is contained in:
parent
05d26a3810
commit
635ef7606c
311
pom.xml
311
pom.xml
|
@ -1,162 +1,173 @@
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||||
<properties>
|
<properties>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<spring.version>3.0.5.RELEASE</spring.version>
|
<spring.version>3.0.5.RELEASE</spring.version>
|
||||||
<java.home>C:\Program Files (x86)\Java\jdk1.6</java.home>
|
<java.home>C:\Program Files (x86)\Java\jdk1.6</java.home>
|
||||||
</properties>
|
</properties>
|
||||||
<profiles>
|
<profiles>
|
||||||
<profile>
|
<profile>
|
||||||
<id>default-tools.jar</id>
|
<id>default-tools.jar</id>
|
||||||
<activation>
|
<activation>
|
||||||
<property>
|
<property>
|
||||||
<name>java.vendor</name>
|
<name>java.vendor</name>
|
||||||
<value>Sun Microsystems Inc.</value>
|
<value>Sun Microsystems Inc.</value>
|
||||||
</property>
|
</property>
|
||||||
</activation>
|
</activation>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.sun</groupId>
|
<groupId>com.sun</groupId>
|
||||||
<artifactId>tools</artifactId>
|
<artifactId>tools</artifactId>
|
||||||
<version>1.5.0</version>
|
<version>1.5.0</version>
|
||||||
<scope>system</scope>
|
<scope>system</scope>
|
||||||
<systemPath>${java.home}/lib/tools.jar</systemPath>
|
<systemPath>${java.home}/lib/tools.jar</systemPath>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</profile>
|
</profile>
|
||||||
</profiles>
|
</profiles>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>bench4q-web</groupId>
|
<groupId>bench4q-web</groupId>
|
||||||
<artifactId>bench4q-web</artifactId>
|
<artifactId>bench4q-web</artifactId>
|
||||||
<packaging>war</packaging>
|
<packaging>war</packaging>
|
||||||
<version>0.0.1-SNAPSHOT</version>
|
<version>0.0.1-SNAPSHOT</version>
|
||||||
<name>bench4q-web Maven Webapp</name>
|
<name>bench4q-web Maven Webapp</name>
|
||||||
<url>http://maven.apache.org</url>
|
<url>http://maven.apache.org</url>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>junit</groupId>
|
<groupId>junit</groupId>
|
||||||
<artifactId>junit</artifactId>
|
<artifactId>junit</artifactId>
|
||||||
<version>3.8.1</version>
|
<version>3.8.1</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>javassist</groupId>
|
<groupId>javassist</groupId>
|
||||||
<artifactId>javassist</artifactId>
|
<artifactId>javassist</artifactId>
|
||||||
<version>3.11.0.GA</version>
|
<version>3.11.0.GA</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.struts.xwork</groupId>
|
<groupId>org.apache.struts.xwork</groupId>
|
||||||
<artifactId>xwork-core</artifactId>
|
<artifactId>xwork-core</artifactId>
|
||||||
<version>2.3.15.1</version>
|
<version>2.3.15.1</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework</groupId>
|
<groupId>org.springframework</groupId>
|
||||||
<artifactId>spring-core</artifactId>
|
<artifactId>spring-core</artifactId>
|
||||||
<version>3.2.3.RELEASE</version>
|
<version>3.2.3.RELEASE</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework</groupId>
|
<groupId>org.springframework</groupId>
|
||||||
<artifactId>spring-web</artifactId>
|
<artifactId>spring-web</artifactId>
|
||||||
<version>3.2.3.RELEASE</version>
|
<version>3.2.3.RELEASE</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework</groupId>
|
<groupId>org.springframework</groupId>
|
||||||
<artifactId>spring-webmvc</artifactId>
|
<artifactId>spring-webmvc</artifactId>
|
||||||
<version>3.2.3.RELEASE</version>
|
<version>3.2.3.RELEASE</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.eclipse.jetty</groupId>
|
<groupId>org.eclipse.jetty</groupId>
|
||||||
<artifactId>jetty-server</artifactId>
|
<artifactId>jetty-server</artifactId>
|
||||||
<version>8.1.11.v20130520</version>
|
<version>8.1.11.v20130520</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.eclipse.jetty</groupId>
|
<groupId>org.eclipse.jetty</groupId>
|
||||||
<artifactId>jetty-servlet</artifactId>
|
<artifactId>jetty-servlet</artifactId>
|
||||||
<version>8.1.11.v20130520</version>
|
<version>8.1.11.v20130520</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>commons-fileupload</groupId>
|
<groupId>commons-fileupload</groupId>
|
||||||
<artifactId>commons-fileupload</artifactId>
|
<artifactId>commons-fileupload</artifactId>
|
||||||
<version>1.3</version>
|
<version>1.3</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>asm</groupId>
|
<groupId>asm</groupId>
|
||||||
<artifactId>asm</artifactId>
|
<artifactId>asm</artifactId>
|
||||||
<version>3.3</version>
|
<version>3.3</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework</groupId>
|
<groupId>org.springframework</groupId>
|
||||||
<artifactId>spring-context</artifactId>
|
<artifactId>spring-context</artifactId>
|
||||||
<version>3.2.3.RELEASE</version>
|
<version>3.2.3.RELEASE</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.struts</groupId>
|
<groupId>org.apache.struts</groupId>
|
||||||
<artifactId>struts2-core</artifactId>
|
<artifactId>struts2-core</artifactId>
|
||||||
<version>2.3.15.1</version>
|
<version>2.3.15.1</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>struts</groupId>
|
<groupId>struts</groupId>
|
||||||
<artifactId>struts</artifactId>
|
<artifactId>struts</artifactId>
|
||||||
<version>1.2.8</version>
|
<version>1.2.8</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>javax.persistence</groupId>
|
<groupId>javax.persistence</groupId>
|
||||||
<artifactId>persistence-api</artifactId>
|
<artifactId>persistence-api</artifactId>
|
||||||
<version>1.0.2</version>
|
<version>1.0.2</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework</groupId>
|
<groupId>org.springframework</groupId>
|
||||||
<artifactId>spring-context-support</artifactId>
|
<artifactId>spring-context-support</artifactId>
|
||||||
<version>3.2.3.RELEASE</version>
|
<version>3.2.3.RELEASE</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework</groupId>
|
<groupId>org.springframework</groupId>
|
||||||
<artifactId>spring-beans</artifactId>
|
<artifactId>spring-beans</artifactId>
|
||||||
<version>3.2.3.RELEASE</version>
|
<version>3.2.3.RELEASE</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>net.sf.json-lib</groupId>
|
<groupId>net.sf.json-lib</groupId>
|
||||||
<artifactId>json-lib</artifactId>
|
<artifactId>json-lib</artifactId>
|
||||||
<version>2.3</version>
|
<version>2.3</version>
|
||||||
<classifier>jdk15</classifier>
|
<classifier>jdk15</classifier>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>commons-beanutils</groupId>
|
<groupId>commons-beanutils</groupId>
|
||||||
<artifactId>commons-beanutils</artifactId>
|
<artifactId>commons-beanutils</artifactId>
|
||||||
<version>1.7.0</version>
|
<version>1.7.0</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>commons-lang</groupId>
|
<groupId>commons-lang</groupId>
|
||||||
<artifactId>commons-lang</artifactId>
|
<artifactId>commons-lang</artifactId>
|
||||||
<version>2.5</version>
|
<version>2.5</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>commons-logging</groupId>
|
<groupId>commons-logging</groupId>
|
||||||
<artifactId>commons-logging</artifactId>
|
<artifactId>commons-logging</artifactId>
|
||||||
<version>1.1.1</version>
|
<version>1.1.1</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>net.sf.ezmorph</groupId>
|
<groupId>net.sf.ezmorph</groupId>
|
||||||
<artifactId>ezmorph</artifactId>
|
<artifactId>ezmorph</artifactId>
|
||||||
<version>1.0.6</version>
|
<version>1.0.6</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>commons-collections</groupId>
|
<groupId>commons-collections</groupId>
|
||||||
<artifactId>commons-collections</artifactId>
|
<artifactId>commons-collections</artifactId>
|
||||||
<version>3.2.1</version>
|
<version>3.2.1</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
<dependency>
|
||||||
|
<groupId>jstl</groupId>
|
||||||
|
<artifactId>jstl</artifactId>
|
||||||
|
<version>1.2</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>taglibs</groupId>
|
||||||
|
<artifactId>standard</artifactId>
|
||||||
|
<version>1.1.2</version>
|
||||||
|
<scope>runtime</scope>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<finalName>bench4q-web</finalName>
|
<finalName>bench4q-web</finalName>
|
||||||
</build>
|
</build>
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -17,6 +17,7 @@ import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.ui.ModelMap;
|
import org.springframework.ui.ModelMap;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.SessionAttributes;
|
import org.springframework.web.bind.annotation.SessionAttributes;
|
||||||
|
import org.springframework.web.servlet.ModelAndView;
|
||||||
|
|
||||||
@Controller
|
@Controller
|
||||||
@SessionAttributes({ "rtmsg", "accessToken", "username" })
|
@SessionAttributes({ "rtmsg", "accessToken", "username" })
|
||||||
|
@ -68,21 +69,21 @@ public class AuthorizeActionController extends BaseActionController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequestMapping("adminlogin.do")
|
@RequestMapping("adminlogin.do")
|
||||||
public String adminlogin(UserModel user, ModelMap model)
|
public ModelAndView adminlogin(UserModel user, ModelMap model)
|
||||||
throws IOException, JAXBException {
|
throws IOException, JAXBException {
|
||||||
System.out.println("enter admin authorize");
|
System.out.println("enter admin authorize");
|
||||||
|
|
||||||
AuthorizeResponseModel authorizeResponseModel = authorize(user);
|
AuthorizeResponseModel authorizeResponseModel = authorize(user);
|
||||||
if (authorizeResponseModel.isSuccess()) {
|
if (authorizeResponseModel.isSuccess()) {
|
||||||
System.out.println("success");
|
System.out.println("success");
|
||||||
model.addAttribute("accessToken",
|
Map<String, String> attrMap = new HashMap<String, String>();
|
||||||
authorizeResponseModel.getAccessToken());
|
attrMap.put("userName", user.getUsername());
|
||||||
return "admin";
|
attrMap.put("accessTocken", authorizeResponseModel.getAccessToken());
|
||||||
|
return new ModelAndView("admin", attrMap);
|
||||||
} else {
|
} else {
|
||||||
model.addAttribute("rtmsg",
|
model.addAttribute("rtmsg",
|
||||||
"somthing is wrong with the password, please try again.");
|
"somthing is wrong with the password, please try again.");
|
||||||
return "adminlogin";
|
return new ModelAndView("adminlogin", null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,21 +1,21 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<beans
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||||
xmlns="http://www.springframework.org/schema/beans"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:context="http://www.springframework.org/schema/context"
|
||||||
xmlns:p="http://www.springframework.org/schema/p"
|
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
||||||
xmlns:context="http://www.springframework.org/schema/context"
|
|
||||||
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
|
||||||
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
|
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
|
||||||
http://www.springframework.org/schema/context
|
http://www.springframework.org/schema/context
|
||||||
http://www.springframework.org/schema/context/spring-context-2.5.xsd">
|
http://www.springframework.org/schema/context/spring-context-2.5.xsd">
|
||||||
|
|
||||||
<!-- ①:对web包中的所有类进行扫描,以完成Bean创建和自动依赖注入的功能 -->
|
<!-- ①:对web包中的所有类进行扫描,以完成Bean创建和自动依赖注入的功能 -->
|
||||||
<context:component-scan base-package="org.bench4q.web"/>
|
<context:component-scan base-package="org.bench4q.web" />
|
||||||
|
|
||||||
<!-- ②:启动Spring MVC的注解功能,完成请求和注解POJO的映射 -->
|
<!-- ②:启动Spring MVC的注解功能,完成请求和注解POJO的映射 -->
|
||||||
<bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter"/>
|
<bean
|
||||||
|
class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter" />
|
||||||
|
|
||||||
<!-- ③:对模型视图名称的解析,即在模型视图名称添加前后缀 -->
|
<!-- ③:对模型视图名称的解析,即在模型视图名称添加前后缀 -->
|
||||||
<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver"
|
<bean
|
||||||
p:prefix="/" p:suffix=".jsp"/>
|
class="org.springframework.web.servlet.view.InternalResourceViewResolver"
|
||||||
|
p:prefix="/" p:suffix=".jsp" />
|
||||||
</beans>
|
</beans>
|
|
@ -1,8 +1,7 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
|
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
|
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0">
|
||||||
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5">
|
|
||||||
<display-name>bench4qweb</display-name>
|
<display-name>bench4qweb</display-name>
|
||||||
<!-- Spring 服务层的配置文件 -->
|
<!-- Spring 服务层的配置文件 -->
|
||||||
<context-param>
|
<context-param>
|
||||||
|
|
|
@ -1,10 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
|
||||||
<title></title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -1,168 +1,200 @@
|
||||||
<%@page language="java" contentType="text/html; charset=GBK" pageEncoding="GBK"%>
|
<%@page contentType="text/html"%>
|
||||||
<%@taglib prefix="s" uri="/struts-tags"%>
|
<%@ page isELIgnored="false"%>
|
||||||
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||||
<meta http-equiv="pragma" content="no-cache">
|
<title>Admin Page</title>
|
||||||
<meta http-equiv="cache-control" content="no-cache">
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
||||||
<title>Bench4Q</title>
|
<link id="bs-css" href="css/bootstrap-cerulean.css" rel="stylesheet">
|
||||||
<link rel="search" type="application/opensearchdescription+xml" href="https://github.com/opensearch.xml" title="GitHub">
|
<link href="css/bootstrap-responsive.css" rel="stylesheet">
|
||||||
<link rel="fluid-icon" href="https://github.com/fluidicon.png" title="GitHub">
|
<link href="css/charisma-app.css" rel="stylesheet">
|
||||||
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
|
|
||||||
<meta content="authenticity_token" name="csrf-param">
|
|
||||||
<meta content="wedm5SiF4gf6cxpqmjS1xTCRp86Sc8PAssZUiID8N0M=" name="csrf-token">
|
|
||||||
<link href="head_line/github-6053501db2b69fd2b04652c6349117be14468ce4.css" media="screen" rel="stylesheet" type="text/css">
|
|
||||||
<link href="head_line/github2-277183b6724249eea8a7d10300542831eac78d3f.css" media="screen" rel="stylesheet" type="text/css">
|
|
||||||
<script src="head_line/frameworks-a450c7f907bdc1ee6b362ab1ecca811c761fd259.js" type="text/javascript"></script>
|
|
||||||
<script src="<%=request.getContextPath()%>/js/admin.js"></script>
|
|
||||||
<script src="http://www.google.com/jsapi"></script>
|
|
||||||
<script type="text/javascript">google.load("jquery", "1");</script>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
||||||
</head>
|
</head>
|
||||||
<body class="logged_out wider windows env-production" >
|
<body class="logged_out wider windows env-production">
|
||||||
<div id="wrapper" style="background-color:#e9f1f4">
|
<body>
|
||||||
<div id="header" class="true clearfix">
|
<!-- topbar starts -->
|
||||||
<div class="container clearfix">
|
<div class="navbar">
|
||||||
<a class="site-logo" href="">
|
<div class="navbar-inner">
|
||||||
<img alt="GitHub" class="github-logo-4x" src="head_line/bench4q-1.png" height="30">
|
<div class="container-fluid">
|
||||||
<img alt="GitHub" class="github-logo-4x-hover" src="head_line/bench4q-2.png" height="30">
|
<a class="btn btn-navbar" data-toggle="collapse"
|
||||||
</a>
|
data-target=".top-nav.nav-collapse,.sidebar-nav.nav-collapse">
|
||||||
<ul class="top-nav logged_out">
|
<span class="icon-bar"></span> <span class="icon-bar"></span> <span
|
||||||
<li class="login"><a href="adminlogin.jsp">login out</a></li>
|
class="icon-bar"></span>
|
||||||
</ul>
|
</a> <a class="brand" href="index.html"> <img alt="Charisma Logo"
|
||||||
</div>
|
src="img/bench4q-1.png" /> <span>Bench4Q</span></a>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="site home">
|
<!-- theme selector starts -->
|
||||||
<div class="container">
|
<div class="btn-group pull-right theme-container">
|
||||||
<div class="pagehead homehead">
|
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
|
||||||
<div class="hero">
|
<i class="icon-tint"></i><span class="hidden-phone">
|
||||||
<h1>Bench4Q is a new methodology for QoS benchmarking</h1>
|
Change Theme / Skin</span> <span class="caret"></span>
|
||||||
</div>
|
</a>
|
||||||
</div>
|
<ul class="dropdown-menu" id="themes">
|
||||||
</div>
|
<li><a data-value="classic" href="#"><i
|
||||||
</div>
|
class="icon-blank"></i> Classic</a></li>
|
||||||
|
<li><a data-value="cerulean" href="#"><i
|
||||||
<div style="margin:20px auto; width:958px; height:780px; background-color:#ffffff">
|
class="icon-blank"></i> Cerulean</a></li>
|
||||||
<div style="width:958px; height:380px;">
|
<li><a data-value="cyborg" href="#"><i class="icon-blank"></i>
|
||||||
<div style="width:50%; height:100%; float:left">
|
Cyborg</a></li>
|
||||||
<div style="margin:40px 40px 40px 40px; width:399px; height:320px; background-color:#CC3300">
|
<li><a data-value="redy" href="#"><i class="icon-blank"></i>
|
||||||
<div style="width:100%; height:50px; background-color:#418aad; border-left:1px solid #40bbf4; border-right:1px solid #40bbf4; border-top:1px solid #40bbf4;">
|
Redy</a></li>
|
||||||
<div align=center style="width:100%; height:100%; font-size:24px; font-weight:900; color:#FFFFFF; padding:10px 0px 0px 0px; float:left">
|
<li><a data-value="journal" href="#"><i
|
||||||
Load generator pool management
|
class="icon-blank"></i> Journal</a></li>
|
||||||
</div>
|
<li><a data-value="simplex" href="#"><i
|
||||||
|
class="icon-blank"></i> Simplex</a></li>
|
||||||
|
<li><a data-value="slate" href="#"><i class="icon-blank"></i>
|
||||||
|
Slate</a></li>
|
||||||
|
<li><a data-value="spacelab" href="#"><i
|
||||||
|
class="icon-blank"></i> Spacelab</a></li>
|
||||||
|
<li><a data-value="united" href="#"><i class="icon-blank"></i>
|
||||||
|
United</a></li>
|
||||||
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div style="width:100%; height:270px; background-color:#caeaf8; border:1px solid #40bbf4;">
|
<!-- theme selector ends -->
|
||||||
<p><label>hostname</label>
|
|
||||||
<input type="text" name="hostname"></input></p>
|
|
||||||
<p><label>maxLoad</label>
|
|
||||||
<input type="text" name="maxLoad"></input></p>
|
|
||||||
<div style="width:100%; height:30px; float:left">
|
|
||||||
<div style="width:27%; height:30px; float:left; padding-left:15px">
|
|
||||||
<input type="image" style="border:1px solid #f1efdc;" src="admin/addagent.jpg" onMouseOver="this.src='admin/addagenton.jpg'" onMouseOut="this.src='admin/addagent.jpg'" onClick="javascript:addpool()"></input>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
<!-- user dropdown starts -->
|
||||||
<div style="width:100%; height:45px; float:left">
|
<div class="btn-group pull-right">
|
||||||
<div style="width:27%; height:30px; float:left; padding-left:15px">
|
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
|
||||||
<input type="image" style="border:1px solid #f1efdc;" src="admin/remove.jpg" onMouseOver="this.src='admin/removeon.jpg'" onMouseOut="this.src='admin/remove.jpg'" onClick="javascript:removepool()"></input>
|
<i class="icon-user">${userName}</i><span class="hidden-phone"> </span> <span
|
||||||
</div>
|
class="caret"></span>
|
||||||
</div>
|
</a>
|
||||||
|
<ul class="dropdown-menu">
|
||||||
|
<li><a href="#">Profile</a></li>
|
||||||
|
<li class="divider"></li>
|
||||||
|
<li><a href="login.html">Logout</a></li>
|
||||||
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<!-- user dropdown ends -->
|
||||||
</div>
|
|
||||||
<div style="width:50%; height:100%; float:left">
|
<div class="top-nav nav-collapse">
|
||||||
<div style="margin:40px 40px 40px 40px; width:399px; height:320px;">
|
<ul class="nav">
|
||||||
<div style="width:100%; height:50px; background-color:#3d9131; border-left:1px solid #3d9131; border-right:1px solid #3d9131; border-top:1px solid #3d9131;">
|
<li><a href="#">Visit Site</a></li>
|
||||||
<div align=center style="width:100%; height:100%; font-size:24px; font-weight:900; color:#FFFFFF; padding:10px 0px 0px 0px; float:left">
|
<li>
|
||||||
Script ports management
|
<form class="navbar-search pull-left">
|
||||||
</div>
|
<input placeholder="Search" class="search-query span2"
|
||||||
</div>
|
name="query" type="text">
|
||||||
<div style="width:100%; height:270px; background-color:#dbf2d8; border:1px solid #3d9131;">
|
</form>
|
||||||
<input type="text" name="portnum" />
|
</li>
|
||||||
<div style="width:100%; height:30px; float:left">
|
</ul>
|
||||||
|
|
||||||
<div style="width:25%; height:30px; float:left; padding-left:15px">
|
|
||||||
<input type="image" style="border:1px solid #f1efdc;" src="admin/addport.jpg" onMouseOver="this.src='admin/addporton.jpg'" onMouseOut="this.src='admin/addport.jpg'" onClick="javascript:addPort()"></input>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div style="width:100%; height:45px; float:left">
|
|
||||||
<div style="width:25%; height:30px; float:left; padding-left:15px">
|
|
||||||
<input type="image" style="border:1px solid #f1efdc;" src="admin/removeport.jpg" onMouseOver="this.src='admin/removeporton.jpg'" onMouseOut="this.src='admin/removeport.jpg'" onClick="javascript:removePort()"></input>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
<!--/.nav-collapse -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- topbar ends -->
|
||||||
|
<div class="container-fluid">
|
||||||
|
<div class="row-fluid">
|
||||||
|
|
||||||
<!--<div style="width:958px; height:380px;">
|
<!-- left menu starts -->
|
||||||
<div style="width:50%; height:100%; float:left">
|
<div class="span2 main-menu-span">
|
||||||
<div style="margin:40px 40px 40px 40px; width:399px; height:320px;">
|
<div class="well nav-collapse sidebar-nav">
|
||||||
<div style="width:100%; height:50px; background-color:#faf592; border-left:1px solid #faf592; border-right:1px solid #faf592; border-top:1px solid #faf592;">
|
<ul class="nav nav-tabs nav-stacked main-menu">
|
||||||
<div align=center style="width:100%; height:100%; font-size:24px; font-weight:900; color:#000000; padding:10px 0px 0px 0px; float:left">
|
<li class="nav-header hidden-tablet">Main</li>
|
||||||
User information search
|
<li><a class="ajax-link" href="index.jsp"><i
|
||||||
</div>
|
class="icon-home"></i><span class="hidden-tablet"> Agent
|
||||||
|
Manage</span></a></li>
|
||||||
|
<li><a class="ajax-link" href="testplan.jsp"><i
|
||||||
|
class="icon-eye-open"></i><span class="hidden-tablet">
|
||||||
|
Port Manage</span></a></li>
|
||||||
|
</ul>
|
||||||
|
<label id="for-is-ajax" class="hidden-tablet" for="is-ajax"><input
|
||||||
|
id="is-ajax" type="checkbox"> Ajax on menu</label>
|
||||||
</div>
|
</div>
|
||||||
<div style="width:100%; height:270px; background-color:#fcfbe6; border:1px solid #faf592;">
|
<!--/.well -->
|
||||||
<div align=center style="width:100%; height:40px;">
|
</div>
|
||||||
<input type="image" style="border:1px solid #f1efdc;" src="admin/userall.jpg" onMouseOver="this.src='admin/userallon.jpg'" onMouseOut="this.src='admin/userall.jpg'" onClick="javascript:searchAll()"></input>
|
<!--/span-->
|
||||||
</div>
|
<!-- left menu ends -->
|
||||||
<div style="width:100%; height:160px;"></div>
|
|
||||||
<div style="width:100%; height:30px; float:left">
|
<noscript></noscript>
|
||||||
<div align=center style="width:18%; height:20px; font-size:14px; float:left; background-color:#FFFFFF;border:1px solid #f1efdc; margin-left:20px">Username</div>
|
|
||||||
<div style="width:42%; height:30px; font-weight:700; padding-left:5px; float:left;"><input id="usernametext" type="text" style="width:150px; height:18px"></input></div>
|
<div id="content" class="span10">
|
||||||
<div style="width:25%; height:30px; float:left; padding-left:15px">
|
<!-- content starts -->
|
||||||
<input type="image" style="border:1px solid #f1efdc;" src="admin/search.jpg" onMouseOver="this.src='admin/searchon.jpg'" onMouseOut="this.src='admin/search.jpg'" onClick="javascript:searchUser()"></input>
|
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<ul class="breadcrumb">
|
||||||
|
<li><a href="#">Home</a> <span class="divider">/</span></li>
|
||||||
|
<li><a href="#">Agent Management</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row-fluid sortable">
|
||||||
|
<div class="box span12 center">
|
||||||
|
<div class="box-header well" data-original-title>
|
||||||
|
<h2>
|
||||||
|
<i></i> Agents
|
||||||
|
</h2>
|
||||||
|
<div class="box-icon">
|
||||||
|
<a href="#" class=" "><i class="icon-plus"></i></a> <a href="#"
|
||||||
|
class="btn btn-minimize btn-round"><i
|
||||||
|
class="icon-chevron-up"></i></a> <a href="#"
|
||||||
|
class="btn btn-close btn-round"><i class="icon-remove"></i></a>
|
||||||
|
<a href="#" class="btn btn-round" onClick="loadscript()"><i
|
||||||
|
class="icon-list"></i></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="box-content">
|
||||||
|
<table id="scripttab"
|
||||||
|
class="table table-striped table-bordered bootstrap-datatable datatable">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>HostName</th>
|
||||||
|
<th>ID</th>
|
||||||
|
<th>Port</th>
|
||||||
|
<th>Status</th>
|
||||||
|
<th>MaxLoad</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<!--/span-->
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
<!--/row-->
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<!-- content ends -->
|
||||||
|
</div>
|
||||||
|
<!--/#content.span10-->
|
||||||
|
|
||||||
|
|
||||||
|
<hr>
|
||||||
|
|
||||||
|
<div class="modal hide fade" id="myModal">
|
||||||
|
<div class="modal-header">
|
||||||
|
<button type="button" class="close" data-dismiss="modal"><3E></button>
|
||||||
|
<h3>Settings</h3>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
<p id="scriptinfo">Here can be configured...</p>
|
||||||
|
</div>
|
||||||
|
<div class="modal-footer">
|
||||||
|
<button type="button" class="btn btn-primary"
|
||||||
|
onClick="startserver()">Start Server</button>
|
||||||
|
<button type="button" class="btn btn-primary" onClick="stopserver()">Stop
|
||||||
|
Server</button>
|
||||||
|
</div>
|
||||||
|
<div id="scriptdiv" style="display: none" class="modal-footer">
|
||||||
|
<input class="input-mini" name="scriptname"></input>
|
||||||
|
<button type="button" class="btn btn-primary" onClick="savescript()">Save
|
||||||
|
File</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="width:50%; height:100%; float:left">
|
|
||||||
<div style="margin:40px 40px 40px 40px; width:399px; height:320px;">
|
|
||||||
<div style="width:100%; height:50px; background-color:#f83c33; border-left:1px solid #f83c33; border-right:1px solid #f83c33; border-top:1px solid #f83c33;">
|
|
||||||
<div align=center style="width:100%; height:100%; font-size:24px; font-weight:900; color:#FFFFFF; padding:10px 0px 0px 0px; float:left">
|
|
||||||
Config management
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div style="width:100%; height:270px; background-color:#fbc5c2; border:1px solid #f83c33;">
|
|
||||||
<div style="width:100%; height:40px; float:left">
|
|
||||||
<div align=center style="width:30%; height:20px; font-size:14px; float:left; background-color:#FFFFFF;border:1px solid #f1efdc; margin-left:40px">baseload/agent</div>
|
|
||||||
<div style="width:50%; height:30px; font-weight:700; padding-left:20px; float:left;"><input id="baseloadtext" value=${session.agentLoad} type="text" style="width:150px; height:18px"></input></div>
|
|
||||||
</div>
|
|
||||||
<div style="width:100%; height:40px; float:left">
|
|
||||||
<div align=center style="width:30%; height:20px; font-size:14px; float:left; background-color:#FFFFFF;border:1px solid #f1efdc; margin-left:40px">agent username</div>
|
|
||||||
<div style="width:50%; height:30px; font-weight:700; padding-left:20px; float:left;"><input id="agentusernametext" value=${session.agentUsername} type="text" style="width:150px; height:18px"></input></div>
|
|
||||||
</div>
|
|
||||||
<div style="width:100%; height:40px; float:left">
|
|
||||||
<div align=center style="width:30%; height:20px; font-size:14px; float:left; background-color:#FFFFFF;border:1px solid #f1efdc; margin-left:40px">agent password</div>
|
|
||||||
<div style="width:50%; height:30px; font-weight:700; padding-left:20px; float:left;"><input id="agentpasswordtext" value=${session.agentPassword} type="password" style="width:150px; height:18px"></input></div>
|
|
||||||
</div>
|
|
||||||
<div style="width:100%; height:40px; float:left">
|
|
||||||
<div align=center style="width:30%; height:20px; font-size:14px; float:left; background-color:#FFFFFF;border:1px solid #f1efdc; margin-left:40px">script serverIP</div>
|
|
||||||
<div style="width:50%; height:30px; font-weight:700; padding-left:20px; float:left;"><input id="scriptServertext" value=${session.scriptServer} type="text" style="width:150px; height:18px"></input></div>
|
|
||||||
</div>
|
|
||||||
<div align=center style="width:100%; height:30px; float:left;">
|
|
||||||
<input type="image" style="border:1px solid #f1efdc;" src="admin/baseload.jpg" onMouseOver="this.src='admin/baseloadon.jpg'" onMouseOut="this.src='admin/baseload.jpg'" onClick="javascript:updateAgentConfig()"></input>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div> -->
|
|
||||||
|
|
||||||
|
<footer>
|
||||||
|
<p class="pull-left">© Bench4Q 2013</p>
|
||||||
|
<p class="pull-right">Powered by: Bench4Q</p>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<!--/.fluid-container-->
|
||||||
|
|
||||||
</div>
|
<script src="bench4qjs/script.js"></script>
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
Loading…
Reference in New Issue