From e4125c174ce67cc4eb04e1d726d3a870f36200a4 Mon Sep 17 00:00:00 2001 From: Graylin Kim Date: Fri, 15 Feb 2013 11:25:26 -0500 Subject: [PATCH] Use DOCTYPE html for all pages. --- src/main/webapp/header.jsp | 6 ++---- src/main/webapp/index.jsp | 12 ++---------- src/main/webapp/templates/meeting.jsp | 2 +- src/main/webapp/templates/search.jsp | 2 +- 4 files changed, 6 insertions(+), 16 deletions(-) diff --git a/src/main/webapp/header.jsp b/src/main/webapp/header.jsp index adab12dfa..acdda21c4 100644 --- a/src/main/webapp/header.jsp +++ b/src/main/webapp/header.jsp @@ -1,6 +1,4 @@ -<%@ page language="java" import="java.util.*, java.text.*,java.io.*,gov.nysenate.openleg.*,gov.nysenate.openleg.model.*" pageEncoding="UTF-8"%> - -<% +<%@ page language="java" import="java.util.*, java.text.*,java.io.*,gov.nysenate.openleg.*,gov.nysenate.openleg.model.*" pageEncoding="UTF-8"%><% String appPath = request.getContextPath(); String title = request.getParameter("title"); if (title == null) @@ -28,7 +26,7 @@ if (searchType == null) searchType = ""; %> - + <%=title%> diff --git a/src/main/webapp/index.jsp b/src/main/webapp/index.jsp index b9e4f2417..6d23e9239 100644 --- a/src/main/webapp/index.jsp +++ b/src/main/webapp/index.jsp @@ -1,6 +1,4 @@ -<%@ page language="java" import="java.util.*, java.text.*,java.io.*,gov.nysenate.openleg.*,gov.nysenate.openleg.model.*" pageEncoding="UTF-8"%> - -<% +<%@ page language="java" import="java.util.*, java.text.*,java.io.*,gov.nysenate.openleg.*,gov.nysenate.openleg.model.*" pageEncoding="UTF-8"%><% session.setAttribute("term",""); session.removeAttribute("mobile"); @@ -24,15 +22,9 @@ if (userAgent.indexOf("mobile") != -1 || userAgent.indexOf("wap") != -1 || userA return; } - %> -<% - - Bill bill = null; String last = null; DateFormat df = SimpleDateFormat.getDateInstance(SimpleDateFormat.MEDIUM); -%> -<% String title = request.getParameter("title"); @@ -47,7 +39,7 @@ String billkey = request.getParameter("billkey"); if (billkey == null) billkey = ""; %> - + diff --git a/src/main/webapp/templates/meeting.jsp b/src/main/webapp/templates/meeting.jsp index 927c05eb6..2851d8f96 100644 --- a/src/main/webapp/templates/meeting.jsp +++ b/src/main/webapp/templates/meeting.jsp @@ -1,4 +1,4 @@ -<%@ page language="java" import="java.util.*,java.text.*,gov.nysenate.openleg.*,gov.nysenate.openleg.model.*,javax.xml.bind.*,gov.nysenate.openleg.util.*" contentType="text/html" pageEncoding="utf-8"%> +<%@ page language="java" import="java.util.*,java.text.*,gov.nysenate.openleg.*,gov.nysenate.openleg.model.*,gov.nysenate.openleg.util.*" contentType="text/html" pageEncoding="utf-8"%> <% String appPath = request.getContextPath(); DateFormat df = new SimpleDateFormat("MMM d, yyyy - h:mm a"); diff --git a/src/main/webapp/templates/search.jsp b/src/main/webapp/templates/search.jsp index 0775d125b..9cf740d83 100644 --- a/src/main/webapp/templates/search.jsp +++ b/src/main/webapp/templates/search.jsp @@ -1,4 +1,4 @@ -<%@ page language="java" import="java.util.*,java.text.*,gov.nysenate.openleg.*,gov.nysenate.openleg.search.*,gov.nysenate.openleg.model.*,gov.nysenate.openleg.util.*" contentType="text/html" pageEncoding="utf-8" %><% +<%@ page language="java" import="gov.nysenate.openleg.util.OpenLegConstants,gov.nysenate.openleg.search.SenateResponse,gov.nysenate.openleg.search.Result,java.text.SimpleDateFormat, java.util.Iterator" contentType="text/html" pageEncoding="utf-8" %><% String requestPath = request.getRequestURI();