JSP fails with Microsoft® Internet Explorer (IE), Internet Information Server (IIS), and ENCTYPE="multipage/form-data" in combination

Technote (FAQ)
Problem
JavaServer Pages™ (JSP™) with a <response.SendRedirect> called from another JSP using a FORM, method=POST and a ENCTYPE="multipage/form-data" fails when using Microsoft IIS Web server with Internet Explorer as client browser with a generic Microsoft errorpage.
Solution
If any of these required conditions are not met, the JSP works as expected. However, if all conditions listed above are met, the JSP may crash. This can be fixed by disabling the "Show all friendly HTTP error messages" in the Internet Explorer TOOLS -> Internet Options -> Advanced menu.

The JSP version does not appear to matter.

Here is an example of the JSP code that failed:
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="Microsoft FrontPage Express 2.0">
<title>Person Detail Entry</title>
</head>
<body>
<form name="myform" action="saveperson.jsp" method="POST" ENCTYPE="multipart/form-data">
<p>Name: <input type="text" size=""35"" name="PersonName"><br>
</p>
<p>Age: <input type="text" size=""3"" maxlength="3"
name="PersonAge"><br>
</p>
<p>Gender:<input type="radio" checked name="PersonGender"
value="Male"> Male <input type="radio" name="PersonGender"
value="Female"> Female <br>
<br>
</p>
<p>Upload file:<input type="file" name="fileupload1"></p>
<p>Upload file:<input type="file" name="fileupload2"></p>
<p>Upload file:<input type="file" name="fileupload3"></p>
<p><input type="submit" value="Save"><input type="reset"
value="Clear"></p>
</form>
</body>
</html>

Where the JSP, saveperson.jsp contains only:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html>
<%
/* call methods to save data */
response.sendRedirect("editperson.jsp?person_id=101");
%>
</html>

Historical Number
PMR 60099











Document Information

Product categories: Software, Application Servers, Distributed Application & Web Servers, WebSphere Application Server, Servlet Engine/Web Container
Operating system(s): All Platforms
Software version: 2.0.3.1, 3.0, 3.5, 4.0
Software edition: Standard, Advanced, Enterprise
Reference #: 1002917
IBM Group: Software Group
Modified date: 2004-12-03