[sword-svn] r211 - trunk/layouts
scribe at crosswire.org
scribe at crosswire.org
Sat Jul 9 09:57:10 MST 2005
Author: scribe
Date: 2005-07-09 09:57:09 -0700 (Sat, 09 Jul 2005)
New Revision: 211
Modified:
trunk/layouts/base-layout.jsp
Log:
show searchString on result page.
Modified: trunk/layouts/base-layout.jsp
===================================================================
--- trunk/layouts/base-layout.jsp 2005-05-15 10:10:00 UTC (rev 210)
+++ trunk/layouts/base-layout.jsp 2005-07-09 16:57:09 UTC (rev 211)
@@ -19,6 +19,11 @@
int style = styleNames.indexOf(prefStyle);
String styleName = (String)styleNames.get(style);
String styleFile = (String)styleFiles.get(style);
+ String searchTerm = request.getParameter("searchTerm");
+ if (searchTerm != null) {
+ searchTerm = new String(searchTerm.getBytes("iso8859-1"), "UTF-8");
+ }
+ else searchTerm = "";
%>
<link rel="stylesheet" type="text/css" media="all" title="<%= styleName %>" href="<%= styleFile %>" />
@@ -43,7 +48,7 @@
<h2><t:t>Search:</t:t></h2>
<form action="wordsearchresults.jsp">
<fieldset>
- <legend><t:t>by keyword or phrase:</t:t></legend> <input type="text" name="searchTerm" size="10" /> <input type="submit" value="go" title="Search by keyword or phrase" />
+ <legend><t:t>by keyword or phrase:</t:t></legend> <input type="text" name="searchTerm" value="<%=searchTerm%>" size="10" /> <input type="submit" value="go" title="Search by keyword or phrase" />
</fieldset>
</form>
<form action="<tiles:getAsString name="lookup_url"/>">
More information about the sword-cvs
mailing list