That didn't work either; although it broke differently. The URLEncoder.encode method encodes the query in hex form, as "%22<query>%22" -- which shows up in the hidden field as ""<query>"". However, I then tried:
<%= (query==null ? "" : StringEscapeUtils.escapeHtml(query)) %> That works. Thanks, Bill On Fri, Aug 1, 2008 at 1:28 AM, Graham Triggs <[EMAIL PROTECTED]> wrote: > Hi, > > In dspace-jspui-webapp/src/main/webapp/search/results.jsp, replace the line: > > <input type="hidden" name="query" value="<%= query %>" /> > > with > > <input type="hidden" name="query" value="<%= > URLEncoder.encode(query,"UTF-8") %>" /> > > > If you are using the overlay war [against the war distributed in the Maven > repository], you can simply copy the entire search/results.jsp from the > standard war, place it at the appropriate location in your overlay war > source directory, and make the change there. > > G > > On 31 Jul 2008, at 21:32, Susan Parham wrote: > >> Hi, >> >> I didn't get a response to my message last week, so am hoping someone >> will spot it if I re-post. Has anyone else experienced this problem? >> >> Susan >> >> ---------- Forwarded message ---------- >> From: Susan Parham <[EMAIL PROTECTED]> >> Date: Wed, Jul 16, 2008 at 9:57 AM >> Subject: Sort results in 1.5 >> To: dspace-tech@lists.sourceforge.net >> >> >> We recently upgraded to 1.5 -- >> >> After conducting a quoted phrase search (e.g., "computer science"), I >> am unable to re-sort the results. Results are listed by Relevance >> (the default). When I try to resort the results list by any other >> value, such as Issue Date or Title, I get the message that the search >> produced no results. >> >> Is this a 1.5 bug which others experience? >> >> Susan >> >> >> >> >> >> -- >> Susan Wells Parham >> Head, Digital Library Development >> Georgia Institute of Technology >> Library & Information Center >> 404-894-4522 >> [EMAIL PROTECTED] >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win great >> prizes >> Grand prize is a trip for two to an Open Source event anywhere in the >> world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> DSpace-tech mailing list >> DSpace-tech@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/dspace-tech > > This email has been scanned by Postini. > For more information please visit http://www.postini.com > > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech -- Bill Anderson Software Developer Digital Library Development Georgia Tech Library ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech