From: <bra...@us...> - 2007-07-19 21:10:34
|
Revision: 1832 http://archive-access.svn.sourceforge.net/archive-access/?rev=1832&view=rev Author: bradtofel Date: 2007-07-19 14:10:37 -0700 (Thu, 19 Jul 2007) Log Message: ----------- FEATURE: now gets serverRoot and contextRoot from UIResults, so appropriate WaybackContext root is used Modified Paths: -------------- trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/template/UI-header.jsp Modified: trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/template/UI-header.jsp =================================================================== --- trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/template/UI-header.jsp 2007-07-19 21:08:54 UTC (rev 1831) +++ trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/template/UI-header.jsp 2007-07-19 21:10:37 UTC (rev 1832) @@ -5,6 +5,8 @@ <% UIResults results = UIResults.getFromRequest(request); StringFormatter fmt = results.getFormatter(); +String contextRoot = results.getContextPrefix(); +String serverRoot = results.getServerPrefix(); %> <!-- HEADER --> <html xmlns="http://www.w3.org/1999/xhtml"> @@ -13,8 +15,8 @@ <meta http-equiv="content-type" content="text/html;charset=iso-8859-1"> <link rel="stylesheet" type="text/css" - href="<%= request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath() %>/css/styles.css" - src="<%= request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath() %>/css/styles.css"> + href="<%= contextRoot %>css/styles.css" + src="<%= contextRoot %>css/styles.css"> <title><%= fmt.format("UIGlobal.pageTitle") %></title> <base target="_top"> </head> @@ -28,7 +30,7 @@ <!-- WAYBACK LOGO --> - <td width="26%"><a href="<%= request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath() %>"><img src="<%= request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath() %>/images/wayback_logo_sm.gif" width="153" height="54" border="0"></a></td> + <td width="26%"><a href="<%= contextRoot %>"><img src="<%= contextRoot %>images/wayback_logo_sm.gif" width="153" height="54" border="0"></a></td> <!-- /WAYBACK LOGO --> @@ -51,11 +53,11 @@ <!-- URL FORM --> - <form action="<%= request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath() %>/query" method="GET"> + <form action="<%= contextRoot %>query" method="GET"> <tr> - <td nowrap align="center"><img src="<%= request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath() %>/images/shim.gif" width="1" height="20"> + <td nowrap align="center"><img src="<%= contextRoot %>images/shim.gif" width="1" height="20"> <b class="mainBodyW"> <font size="2" color="#FFFFFF" face="Arial, Helvetica, sans-serif"> @@ -83,7 +85,7 @@ <input type="Submit" name="Submit" value="<%= fmt.format("UIGlobal.urlSearchButton") %>" align="absMiddle"> - <a href="<%= request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath() %>/jsp/QueryUI/requestform.jsp" style="color:white;font-size:11px"> + <a href="<%= contextRoot %>advanced_search.jsp" style="color:white;font-size:11px"> <%= fmt.format("UIGlobal.advancedSearchLink") %> </a> @@ -103,4 +105,3 @@ <!-- /GREEN BANNER --> </table> <!-- /HEADER --> - \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <bra...@us...> - 2008-04-01 02:00:09
|
Revision: 2225 http://archive-access.svn.sourceforge.net/archive-access/?rev=2225&view=rev Author: bradtofel Date: 2008-03-31 19:00:10 -0700 (Mon, 31 Mar 2008) Log Message: ----------- BUGFIX: changed declared META tag encoding to utf-8, thanks Lukas ADDED: @page declaration indicate utf-8 encoding as well. Modified Paths: -------------- trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/template/UI-header.jsp Modified: trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/template/UI-header.jsp =================================================================== --- trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/template/UI-header.jsp 2008-03-21 01:10:43 UTC (rev 2224) +++ trunk/archive-access/projects/wayback/wayback-webapp/src/main/webapp/template/UI-header.jsp 2008-04-01 02:00:10 UTC (rev 2225) @@ -2,6 +2,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <%@ page import="org.archive.wayback.core.UIResults" %> <%@ page import="org.archive.wayback.util.StringFormatter" %> +<%@ page language="java" pageEncoding="utf-8" contentType="text/html;charset=utf-8"%> <% UIResults results = UIResults.getFromRequest(request); StringFormatter fmt = results.getFormatter(); @@ -12,7 +13,7 @@ <html xmlns="http://www.w3.org/1999/xhtml"> <head> - <meta http-equiv="content-type" content="text/html;charset=iso-8859-1"> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> <link rel="stylesheet" type="text/css" href="<%= contextRoot %>css/styles.css" @@ -53,7 +54,7 @@ <!-- URL FORM --> - <form action="<%= contextRoot %>query" method="GET"> + <form action="<%= contextRoot %>query" method="get"> <tr> @@ -83,7 +84,7 @@ <option>1996</option> </select> - <input type="Submit" name="Submit" value="<%= fmt.format("UIGlobal.urlSearchButton") %>" align="absMiddle"> + <input type="submit" name="Submit" value="<%= fmt.format("UIGlobal.urlSearchButton") %>" align="absMiddle"> <a href="<%= contextRoot %>advanced_search.jsp" style="color:white;font-size:11px"> <%= fmt.format("UIGlobal.advancedSearchLink") %> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |