There is a simple JSP like this:
<%
//some code here
%>
<html>
<form method='POST' enctype='multipart/form-data'>
<!-- some fields here -->
</form>
</html>
The code is being executed if the form is using GET and is being skipped if using POST. Why? PLEASE NOTE: This question is NOT about servlets, forms and file uploading! I am asking why the code is not executed when my JSP is called with a POST instead of a GET!