Show search.jsp syntax highlighted
<%@ include file="/WEB-INF/jsp/include.jsp" %>
<html>
<head>
<title><fmt:message key="kneobase.title"/> <fmt:message key="search.title" /></title>
<link href="design/stylesheet/kneobase.css" rel="stylesheet" type="text/css">
</head>
<body>
<%@ include file="top.jsp" %>
<fmt:message key="search.intro" />
<form method="GET" action="search.html" id="form">
<table border="0" cellpadding="0" cellspacing="0" class="searchForm">
<tr>
<td valign="middle">
<input name="userInput"
value="<c:out value='${searchCommand.userInput}' />"
size="50" />
</td>
<td width="20"> </td>
<td valign="middle">
<input name="submit" type="submit" value="<fmt:message key="search.submit" />">
</td>
<td width="20"> </td>
<td valign="middle">
<fmt:message key="search.mimetype" />
<select name="mimetype">
<option value=""
<c:if test="${ searchCommand.mimetype == null}">
selected="selected"
</c:if>
>
</option>
<c:forEach items="${searchCommand.mimetypes}" var="mimetype">
<option value="<c:out value='${mimetype}'/>" <c:if test="${ searchCommand.mimetype == mimetype }">
selected="selected"
</c:if>
><c:out value='${mimetype}' /></option>
</c:forEach>
</select>
</td>
</tr>
</table>
<input type="hidden" name="field" value="bulk" />
<table border="0" cellpadding="10" cellspacing="10"> <!-- tabla para alinear los radio botones -->
<tr>
<td valign="top">
<table border="0" cellpadding="0" cellspacing="0" class="searchForm">
<tr>
<td> </td>
<td valign="top"><strong><fmt:message key="search.language" /></strong></td>
</tr>
<tr>
<td> </td>
<td valign="top">
<c:forEach items="${searchCommand.languages}" var="language">
<input type="radio" name="language" class="radioButtons" value="<c:out value="${language}"/>" <c:if test="${searchCommand.language == language}">checked</c:if> >
<fmt:message key='${language}' />
<br>
</c:forEach>
<fmt:message key="autodetect" />
<input type="radio" name="language" class="radioButtons" value="_autodetect_" <c:if test="${searchCommand.language == '_autodetect_'}">checked</c:if>>
<br>
<fmt:message key="all" />
<input type="radio" name="language" class="radioButtons" value="_all_" <c:if test="${ searchCommand.language == null || searchCommand.language == '_all_' || searchCommand.language == '' }">checked</c:if>>
</td>
</tr>
</table>
</td><td valign="top">
<table border="0" cellpadding="0" cellspacing="0" class="searchForm">
<tr>
<td > </td>
<td valign="top"><strong><fmt:message key="search.content_source" /></strong></td>
</tr>
<c:forEach items="${searchCommand.sources}" var="source">
<tr>
<td > </td>
<td valign="top">
<input type="radio" name="source" class="radioButtons" value="<c:out value="${source}"/>" <c:if test="${searchCommand.source == source}">checked</c:if> >
<c:out value="${source}"/>
</td>
</tr>
</c:forEach>
<tr>
<td > </td>
<td valign="top">
<fmt:message key="search.all_sources" />
<input type="radio" class="radioButtons" name="source" value="_all_" <c:if test="${ searchCommand.source == null || searchCommand.source == '' || searchCommand.source == '_all_'}">checked</c:if>>
</td>
</tr>
<tr>
<td > </td>
<td valign="top" width="200" > </td>
</tr>
</table>
</td></tr>
</table>
</form>
<c:if test="${!empty searchCommand.error}">
<table>
<tr>
<td>
<h2><fmt:message key="search.error" /> </h2>
<fmt:message key="search.${searchCommand.error.class.name}" />
<h4><c:out value="${searchCommand.error.message}"/></h4>
</td>
</tr>
</table>
</c:if>
<c:if test="${!empty searchCommand.hits}">
<p><h2>
<fmt:message key="search.results" /> <c:out value="${searchCommand.hitsLength}"/>
</h2></p>
<table cellpadding="5" class="buscar">
<tr>
<th><fmt:message key="search.name" /></th>
<th><fmt:message key="search.description" /></th>
<th><fmt:message key="search.source" /></th>
<th><fmt:message key="search.language" /></th>
</tr>
<c:forEach items="${searchCommand.hitsIterator}" var="doc" varStatus="hitNumber">
<c:set var="name" value="${doc.name}" />
<c:if test="${empty name }">
<fmt:message key="search.noname" var ="noname" />
<c:set var="name" value="${noname}" />
</c:if>
<c:set var="description" value="${doc.description}" />
<c:if test="${empty description}">
<fmt:message key="search.no_description" var ="no_description" />
<c:set var="description" value="${no_description}" />
</c:if>
<c:set var="link" value="${doc.link}" />
<c:if test="${empty link}">
<fmt:message key="search.no_link" var ="no_link" />
<c:set var="link" value="${no_link}" />
</c:if>
<c:set var="source" value="${doc.source}" />
<c:if test="${empty source}">
<fmt:message key="search.unknown_src" var ="unknown_src" />
<c:set var="source" value="${unknown_src}" />
</c:if>
<c:set var="language" value="${doc.language}" />
<c:if test="${empty language}">
<fmt:message key="search.unknown_lang" var ="unknown_lang" />
<c:set var="language" value="${unknown_lang}" />
</c:if>
<tr>
<td class="hit">
<c:out value="${hitNumber.count}"/>.
<a target="kneodemo"
onClick="window.open('about:blank','kneodemo', 'top=0,left=250,directories=no,height=500,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no,width=750');" href="<c:out value='${link}'/>" >
<c:out value="${name}"/>
</a>
</td>
<td class="hit">
<c:out value="${description}" escapeXml="false" />
</td>
<td class="hit">
<c:out value="${source}"/>
</td>
<td class="hit">
<fmt:message key='${language}' />
</td>
</tr>
</c:forEach>
</table>
</c:if>
<p> </p>
<p> </p>
<fmt:message key="search.help_page" var="help_page" />
<c:import url="${help_page}" />
</body>
</html>
See more files for this project here