git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@543109
13f79535-47bb-0310-9956-
ffa450edef68
"http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">
<validators>
- <field name="md5">
+ <field name="q">
<field-validator type="requiredstring">
<message>
You must select a file, or enter the checksum. If the file was given and you receive this message,
<result name="results">/WEB-INF/jsp/results.jsp</result>
<result name="error">/WEB-INF/jsp/findArtifact.jsp</result>
<result name="artifact" type="redirect">
- /browse/${searchResults[0].groupId}/${searchResults[0].artifactId}/${searchResults[0].version}
+ /browse/${results.getHits().get(0).groupId}/${results.getHits().get(0).artifactId}/${results.getHits().get(0).version}
</result>
</action>
</noscript>
<ww:form method="POST" action="checksumSearch" namespace="/"
- onsubmit="this.md5.value = generateMd5(this.file.value,this.md5.value); this.file.disabled = true">
+ onsubmit="this.q.value = generateMd5(this.file.value,this.md5.value); this.file.disabled = true;">
+ <ww:hidden name="q"/>
<ww:if test="${sessionScope.uiOptions.appletFindEnabled}">
<tr>
<td class="tdLabel"><label for="checksumSearch_file" class="label">Search for:</label></td>