My Servlet app. gets called twice every time the user submits a form: The first time with a POST request, and immediately after, with a GET request (both requests with the same URI).
This problem appears to be independent of the app server (I've tried with tomcat-6.0 and with resin.2.1).
The problem seems to be browser related: The problem does not occur with the MS Internet Explorer 6.0, 7.0 and 8.0 clients, but it does with Google Chrome-2.0 and with FireFox-3.0.11 clients.
The HTML code is trivial:
<form method="post" action="MyServlet?formSubmitted">
<input type="text" name="data">
<input type="submit" value="OK">
</form>
Could somebody explain such behaviour? Thanks in advance, Carlos