Open search
From Null-pointer
html
In the html file
Created with Colorer-take5 Library. Type 'jsp' 6: <head> 7: <link title="Portal Search" rel="search" 8: type="application/opensearchdescription+xml" 9: href="/search/opensearch.jsp"> 10: ... 11: </head>
OpenSearch description document
Created with Colorer-take5 Library. Type 'jsp' 0: <% 1: response.setContentType("text/xml"); 2: %><?xml version="1.0"?> 3: <OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"> 4: <ShortName>Portal Search</ShortName> 5: <Description>Portal Search</Description><% 6: String hostPort = request.getParameter("hostport"); 7: %> 8: <Image height="16" width="16" type="image/x-icon"><%=hostPort%>/favicon.ico</Image> 9: <Url type="text/html" method="get" template="<%=hostPort%>/search?search={searchTerms}"/> 10: </OpenSearchDescription>

