From 4206b6ec267fb24d7a0d2b93624fee07eb7a7b52 Mon Sep 17 00:00:00 2001 From: xiaoran Date: Wed, 6 Nov 2013 17:43:26 +0800 Subject: [PATCH] fix the bug in homepage.jsp :tow divs in a line --- .../bench4q/web/security/SessionFilter.java | 8 ---- src/main/webapp/bench4q-css/bench4q.css | 18 ++++++++ src/main/webapp/homepage.jsp | 46 ++++++++++--------- src/main/webapp/index.jsp | 4 +- 4 files changed, 44 insertions(+), 32 deletions(-) diff --git a/src/main/java/org/bench4q/web/security/SessionFilter.java b/src/main/java/org/bench4q/web/security/SessionFilter.java index ea9b356e..f1526780 100644 --- a/src/main/java/org/bench4q/web/security/SessionFilter.java +++ b/src/main/java/org/bench4q/web/security/SessionFilter.java @@ -19,33 +19,25 @@ public class SessionFilter extends OncePerRequestFilter { // 请求的uri String uri = request.getRequestURI(); - System.out.println("start url filter"); - System.out.println(uri); String user = (String) request.getSession().getAttribute("username"); if (user == null || user.equals("")) { // uri中包含background时才进行过滤 for (String s : notFilter) { if (uri.contains(s)) { filterChain.doFilter(request, response); - System.out.println("end the filter"); return; } } if (uri.equals("/")) { filterChain.doFilter(request, response); - System.out.println("end the filter"); return; } else { - System.out.println("redirect to login.jsp"); response.sendRedirect("index.jsp"); - System.out.println("end the filter"); return; } } else{ filterChain.doFilter(request, response); - System.out.println("the user is:"+user); - System.out.println("end the filter"); return; } } diff --git a/src/main/webapp/bench4q-css/bench4q.css b/src/main/webapp/bench4q-css/bench4q.css index 08634e61..af251d6b 100644 --- a/src/main/webapp/bench4q-css/bench4q.css +++ b/src/main/webapp/bench4q-css/bench4q.css @@ -44,3 +44,21 @@ disply:none; margin-top : 30px; margin-left:200px; } +.message-left{ + font-size:20px; + text-align:center; + width:32%; + height:168px; + float:left; + +} +.message-right{ + padding-left: 8px; + padding-top:8px; + text-align:left; + float: right; + width: 65%; + height:160px; + font-size:13px; + +} \ No newline at end of file diff --git a/src/main/webapp/homepage.jsp b/src/main/webapp/homepage.jsp index 9561353b..39fa8cff 100644 --- a/src/main/webapp/homepage.jsp +++ b/src/main/webapp/homepage.jsp @@ -20,7 +20,7 @@ - + @@ -30,10 +30,9 @@