add jstl support for this project

This commit is contained in:
Tienan Chen 2013-09-06 18:03:00 +08:00
parent 05d26a3810
commit 635ef7606c
7 changed files with 415 additions and 382 deletions

311
pom.xml
View File

@ -1,162 +1,173 @@
<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">
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<spring.version>3.0.5.RELEASE</spring.version>
<java.home>C:\Program Files (x86)\Java\jdk1.6</java.home>
</properties>
<profiles>
<profile>
<id>default-tools.jar</id>
<activation>
<property>
<name>java.vendor</name>
<value>Sun Microsystems Inc.</value>
</property>
</activation>
<dependencies>
<dependency>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
<version>1.5.0</version>
<scope>system</scope>
<systemPath>${java.home}/lib/tools.jar</systemPath>
</dependency>
</dependencies>
</profile>
</profiles>
<modelVersion>4.0.0</modelVersion>
<groupId>bench4q-web</groupId>
<artifactId>bench4q-web</artifactId>
<packaging>war</packaging>
<version>0.0.1-SNAPSHOT</version>
<name>bench4q-web Maven Webapp</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<spring.version>3.0.5.RELEASE</spring.version>
<java.home>C:\Program Files (x86)\Java\jdk1.6</java.home>
</properties>
<profiles>
<profile>
<id>default-tools.jar</id>
<activation>
<property>
<name>java.vendor</name>
<value>Sun Microsystems Inc.</value>
</property>
</activation>
<dependencies>
<dependency>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
<version>1.5.0</version>
<scope>system</scope>
<systemPath>${java.home}/lib/tools.jar</systemPath>
</dependency>
</dependencies>
</profile>
</profiles>
<modelVersion>4.0.0</modelVersion>
<groupId>bench4q-web</groupId>
<artifactId>bench4q-web</artifactId>
<packaging>war</packaging>
<version>0.0.1-SNAPSHOT</version>
<name>bench4q-web Maven Webapp</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>javassist</groupId>
<artifactId>javassist</artifactId>
<version>3.11.0.GA</version>
</dependency>
<dependency>
<groupId>org.apache.struts.xwork</groupId>
<artifactId>xwork-core</artifactId>
<version>2.3.15.1</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>3.2.3.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>3.2.3.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>3.2.3.RELEASE</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-server</artifactId>
<version>8.1.11.v20130520</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-servlet</artifactId>
<version>8.1.11.v20130520</version>
</dependency>
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>1.3</version>
</dependency>
<dependency>
<groupId>asm</groupId>
<artifactId>asm</artifactId>
<version>3.3</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>3.2.3.RELEASE</version>
</dependency>
<dependency>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-core</artifactId>
<version>2.3.15.1</version>
</dependency>
<dependency>
<groupId>struts</groupId>
<artifactId>struts</artifactId>
<version>1.2.8</version>
</dependency>
<dependency>
<groupId>javax.persistence</groupId>
<artifactId>persistence-api</artifactId>
<version>1.0.2</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context-support</artifactId>
<version>3.2.3.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
<version>3.2.3.RELEASE</version>
</dependency>
<dependency>
<groupId>net.sf.json-lib</groupId>
<artifactId>json-lib</artifactId>
<version>2.3</version>
<classifier>jdk15</classifier>
</dependency>
<dependency>
<groupId>javassist</groupId>
<artifactId>javassist</artifactId>
<version>3.11.0.GA</version>
</dependency>
<dependency>
<groupId>org.apache.struts.xwork</groupId>
<artifactId>xwork-core</artifactId>
<version>2.3.15.1</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>3.2.3.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>3.2.3.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>3.2.3.RELEASE</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-server</artifactId>
<version>8.1.11.v20130520</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-servlet</artifactId>
<version>8.1.11.v20130520</version>
</dependency>
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>1.3</version>
</dependency>
<dependency>
<groupId>asm</groupId>
<artifactId>asm</artifactId>
<version>3.3</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>3.2.3.RELEASE</version>
</dependency>
<dependency>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-core</artifactId>
<version>2.3.15.1</version>
</dependency>
<dependency>
<groupId>struts</groupId>
<artifactId>struts</artifactId>
<version>1.2.8</version>
</dependency>
<dependency>
<groupId>javax.persistence</groupId>
<artifactId>persistence-api</artifactId>
<version>1.0.2</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context-support</artifactId>
<version>3.2.3.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
<version>3.2.3.RELEASE</version>
</dependency>
<dependency>
<groupId>net.sf.json-lib</groupId>
<artifactId>json-lib</artifactId>
<version>2.3</version>
<classifier>jdk15</classifier>
</dependency>
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
<version>1.7.0</version>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.5</version>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>net.sf.ezmorph</groupId>
<artifactId>ezmorph</artifactId>
<version>1.0.6</version>
</dependency>
<dependency>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
<version>3.2.1</version>
</dependency>
</dependencies>
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
<version>1.7.0</version>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.5</version>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>net.sf.ezmorph</groupId>
<artifactId>ezmorph</artifactId>
<version>1.0.6</version>
</dependency>
<dependency>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
<version>3.2.1</version>
</dependency>
<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>
<finalName>bench4q-web</finalName>
</build>
<build>
<finalName>bench4q-web</finalName>
</build>
</project>

View File

@ -17,6 +17,7 @@ import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.SessionAttributes;
import org.springframework.web.servlet.ModelAndView;
@Controller
@SessionAttributes({ "rtmsg", "accessToken", "username" })
@ -68,21 +69,21 @@ public class AuthorizeActionController extends BaseActionController {
}
@RequestMapping("adminlogin.do")
public String adminlogin(UserModel user, ModelMap model)
public ModelAndView adminlogin(UserModel user, ModelMap model)
throws IOException, JAXBException {
System.out.println("enter admin authorize");
AuthorizeResponseModel authorizeResponseModel = authorize(user);
if (authorizeResponseModel.isSuccess()) {
System.out.println("success");
model.addAttribute("accessToken",
authorizeResponseModel.getAccessToken());
return "admin";
Map<String, String> attrMap = new HashMap<String, String>();
attrMap.put("userName", user.getUsername());
attrMap.put("accessTocken", authorizeResponseModel.getAccessToken());
return new ModelAndView("admin", attrMap);
} else {
model.addAttribute("rtmsg",
"somthing is wrong with the password, please try again.");
return "adminlogin";
return new ModelAndView("adminlogin", null);
}
}
}

View File

@ -1,21 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<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:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
<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: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/context
http://www.springframework.org/schema/context/spring-context-2.5.xsd">
<!--对web包中的所有类进行扫描以完成Bean创建和自动依赖注入的功能 -->
<context:component-scan base-package="org.bench4q.web"/>
<!--对web包中的所有类进行扫描以完成Bean创建和自动依赖注入的功能 -->
<context:component-scan base-package="org.bench4q.web" />
<!--启动Spring MVC的注解功能完成请求和注解POJO的映射 -->
<bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter"/>
<!--启动Spring MVC的注解功能完成请求和注解POJO的映射 -->
<bean
class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter" />
<!-- ③:对模型视图名称的解析,即在模型视图名称添加前后缀 -->
<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver"
p:prefix="/" p:suffix=".jsp"/>
<!-- ③:对模型视图名称的解析,即在模型视图名称添加前后缀 -->
<bean
class="org.springframework.web.servlet.view.InternalResourceViewResolver"
p:prefix="/" p:suffix=".jsp" />
</beans>

View File

@ -1,8 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5">
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0">
<display-name>bench4qweb</display-name>
<!-- Spring 服务层的配置文件 -->
<context-param>

View File

@ -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>

View File

@ -1,168 +1,200 @@
<%@page language="java" contentType="text/html; charset=GBK" pageEncoding="GBK"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@page contentType="text/html"%>
<%@ 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>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Bench4Q</title>
<link rel="search" type="application/opensearchdescription+xml" href="https://github.com/opensearch.xml" title="GitHub">
<link rel="fluid-icon" href="https://github.com/fluidicon.png" title="GitHub">
<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">
<title>Admin Page</title>
<link id="bs-css" href="css/bootstrap-cerulean.css" rel="stylesheet">
<link href="css/bootstrap-responsive.css" rel="stylesheet">
<link href="css/charisma-app.css" rel="stylesheet">
</head>
<body class="logged_out wider windows env-production" >
<div id="wrapper" style="background-color:#e9f1f4">
<div id="header" class="true clearfix">
<div class="container clearfix">
<a class="site-logo" href="">
<img alt="GitHub" class="github-logo-4x" src="head_line/bench4q-1.png" height="30">
<img alt="GitHub" class="github-logo-4x-hover" src="head_line/bench4q-2.png" height="30">
</a>
<ul class="top-nav logged_out">
<li class="login"><a href="adminlogin.jsp">login out</a></li>
</ul>
</div>
</div>
<body class="logged_out wider windows env-production">
<body>
<!-- topbar starts -->
<div class="navbar">
<div class="navbar-inner">
<div class="container-fluid">
<a class="btn btn-navbar" data-toggle="collapse"
data-target=".top-nav.nav-collapse,.sidebar-nav.nav-collapse">
<span class="icon-bar"></span> <span class="icon-bar"></span> <span
class="icon-bar"></span>
</a> <a class="brand" href="index.html"> <img alt="Charisma Logo"
src="img/bench4q-1.png" /> <span>Bench4Q</span></a>
<div class="site home">
<div class="container">
<div class="pagehead homehead">
<div class="hero">
<h1>Bench4Q is a new methodology for QoS benchmarking</h1>
</div>
</div>
</div>
</div>
<div style="margin:20px auto; width:958px; height:780px; background-color:#ffffff">
<div style="width:958px; height:380px;">
<div style="width:50%; height:100%; float:left">
<div style="margin:40px 40px 40px 40px; width:399px; height:320px; background-color:#CC3300">
<div style="width:100%; height:50px; background-color:#418aad; border-left:1px solid #40bbf4; border-right:1px solid #40bbf4; border-top:1px solid #40bbf4;">
<div align=center style="width:100%; height:100%; font-size:24px; font-weight:900; color:#FFFFFF; padding:10px 0px 0px 0px; float:left">
Load generator pool management
</div>
<!-- theme selector starts -->
<div class="btn-group pull-right theme-container">
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
<i class="icon-tint"></i><span class="hidden-phone">
Change Theme / Skin</span> <span class="caret"></span>
</a>
<ul class="dropdown-menu" id="themes">
<li><a data-value="classic" href="#"><i
class="icon-blank"></i> Classic</a></li>
<li><a data-value="cerulean" href="#"><i
class="icon-blank"></i> Cerulean</a></li>
<li><a data-value="cyborg" href="#"><i class="icon-blank"></i>
Cyborg</a></li>
<li><a data-value="redy" href="#"><i class="icon-blank"></i>
Redy</a></li>
<li><a data-value="journal" href="#"><i
class="icon-blank"></i> Journal</a></li>
<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 style="width:100%; height:270px; background-color:#caeaf8; border:1px solid #40bbf4;">
<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>
<!-- theme selector ends -->
<div style="width:100%; height:45px; float:left">
<div style="width:27%; height:30px; float:left; padding-left:15px">
<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>
</div>
</div>
<!-- user dropdown starts -->
<div class="btn-group pull-right">
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
<i class="icon-user">${userName}</i><span class="hidden-phone"> </span> <span
class="caret"></span>
</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>
<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:#3d9131; border-left:1px solid #3d9131; border-right:1px solid #3d9131; border-top:1px solid #3d9131;">
<div align=center style="width:100%; height:100%; font-size:24px; font-weight:900; color:#FFFFFF; padding:10px 0px 0px 0px; float:left">
Script ports management
</div>
</div>
<div style="width:100%; height:270px; background-color:#dbf2d8; border:1px solid #3d9131;">
<input type="text" name="portnum" />
<div style="width:100%; height:30px; float:left">
<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>
<!-- user dropdown ends -->
<div class="top-nav nav-collapse">
<ul class="nav">
<li><a href="#">Visit Site</a></li>
<li>
<form class="navbar-search pull-left">
<input placeholder="Search" class="search-query span2"
name="query" type="text">
</form>
</li>
</ul>
</div>
<!--/.nav-collapse -->
</div>
</div>
</div>
<!-- topbar ends -->
<div class="container-fluid">
<div class="row-fluid">
<!--<div style="width:958px; height:380px;">
<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:#faf592; border-left:1px solid #faf592; border-right:1px solid #faf592; border-top:1px solid #faf592;">
<div align=center style="width:100%; height:100%; font-size:24px; font-weight:900; color:#000000; padding:10px 0px 0px 0px; float:left">
User information search
</div>
<!-- left menu starts -->
<div class="span2 main-menu-span">
<div class="well nav-collapse sidebar-nav">
<ul class="nav nav-tabs nav-stacked main-menu">
<li class="nav-header hidden-tablet">Main</li>
<li><a class="ajax-link" href="index.jsp"><i
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 style="width:100%; height:270px; background-color:#fcfbe6; border:1px solid #faf592;">
<div align=center style="width:100%; height:40px;">
<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>
</div>
<div style="width:100%; height:160px;"></div>
<div style="width:100%; height:30px; float:left">
<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 style="width:25%; height:30px; float:left; padding-left:15px">
<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>
<!--/.well -->
</div>
<!--/span-->
<!-- left menu ends -->
<noscript></noscript>
<div id="content" class="span10">
<!-- content starts -->
<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>
<!--/span-->
</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 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">&copy; Bench4Q 2013</p>
<p class="pull-right">Powered by: Bench4Q</p>
</footer>
</div>
<!--/.fluid-container-->
</div>
</div>
<script src="bench4qjs/script.js"></script>
</body>
</html>