diff options
author | Chris Goldthorpe | 2009-09-17 17:47:01 +0000 |
---|---|---|
committer | Chris Goldthorpe | 2009-09-17 17:47:01 +0000 |
commit | 0906262aca635cce66ad5c69ac4b3b49ae49aa9f (patch) | |
tree | ec0ccbff5461bbc9cc8570504920a869699466d0 /org.eclipse.ua.tests/jsp | |
parent | d6523b15009c1f29306fc7cf6a5523b28628cb91 (diff) | |
download | eclipse.platform.ua-0906262aca635cce66ad5c69ac4b3b49ae49aa9f.tar.gz eclipse.platform.ua-0906262aca635cce66ad5c69ac4b3b49ae49aa9f.tar.xz eclipse.platform.ua-0906262aca635cce66ad5c69ac4b3b49ae49aa9f.zip |
Bug 287712 [Webapp] Allow additional buttons to be added to the help webapp
Diffstat (limited to 'org.eclipse.ua.tests/jsp')
-rw-r--r-- | org.eclipse.ua.tests/jsp/advanced/titlesearchView.jsp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/org.eclipse.ua.tests/jsp/advanced/titlesearchView.jsp b/org.eclipse.ua.tests/jsp/advanced/titlesearchView.jsp index 0cd7e168c..43fb4657e 100644 --- a/org.eclipse.ua.tests/jsp/advanced/titlesearchView.jsp +++ b/org.eclipse.ua.tests/jsp/advanced/titlesearchView.jsp @@ -12,6 +12,11 @@ <%@ page import="org.eclipse.ua.tests.help.webextension.*" %> <% TitleSearchData data = new TitleSearchData(application, request, response); + String searchWord = request.getParameter("searchWord"); + if (searchWord == null) { + searchWord = ""; + } + %> <html> @@ -38,15 +43,14 @@ function doSearch(query) </tr> <tr> - <td width="100%"><input type="text" id="typein"></td> + <td width="100%"><input type="text" id="typein" value = "<%=searchWord%>"></td> <td><input type="button" id="button" value="Go" onclick="this.blur();doSearch()"></td> </tr> </table> <% - String searchWord = request.getParameter("searchWord"); - if (searchWord != null) { + if (searchWord != "") { TitleSearchData.SearchResult[] results = data.getSearchResults(); if (results.length > 0) { for (int r = 0; r < results.length; r++) { |