Tomcat 5.5.27および5.5.26で実行されているサーブレットがあり、POSTメソッドを使用したWebフォームがあります。Safari 3.2.1を使用している場合、ログから、TomcatがPOSTを受信し、すぐに/同時にGETが続き、失敗することがわかります。Firefox 3.0.5を使用すると、POSTのみが送信され、すべてが機能することがわかります。
Eclipseでデバッグしようとすると、Safariを使用しているときに呼び出されるのはdoGet()メソッドであり、Firefoxを使用しているときに呼び出されるのはdoPost()であることがわかります。
実際には、SafariはPOSTとすぐにGETの両方を起動しますが、FirefoxはPOSTのみを起動するようです(HTMLフォームによると)。
これを経験した人は他にいますか?この場合、解決策はありますか?
HTMLフォームのスニペットは次のとおりです。
<form action="/vidisearch/Search" method="post" name="SearchForm" id="SearchForm">
<div class="input required">
<label for="Concepts">Concepts, comma separated<br />
ex. (remove quotes) "man-made object, cemetery, graphic event, atmospheric event, tool event"</label>
<input name="concepts" type="text" value="" id="concepts" />
</div>
<div class="input required">
<label for="Operators">Operators, comma separated<br />
ex. (remove quotes) "NOT, AND, OR, AND, AND"</label>
<input type="text" name="operators" value="" id="operators" />
</div>
<div class="input required">
<label for="Specializations">Specializations, comma separated<br />
ex. (remove quotes) "true, false, false, true, false"</label>
<input type="text" name="specializations" value="" id="specializations" />
</div>
<div class="input required">
<label for="Results">Various parameters</label>
<table width="100%" border="0" style="border: 0;">
<tr>
<td>Ontology ID<br />
<input name="ontologyID" type="text" id="ontologyID" value="" /></td>
<td>Result page<br />
<input name="page" type="text" id="page" value="0" /></td>
<td>Shots per page<br />
<input name="shotsPerPage" type="text" id="shotsPerPage" value="20" /></td>
<td>New search<br />
<input name="newSearch" type="text" id="newSearch" value="true" /></td></tr>
</table>
</div>
<div class="submit"><input type="submit" value="Search" /></div>
</form>