1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<meta NAME="Author" CONTENT="Stefano Mazzocchi">
<title>Known Bugs</title>
</head>
<body BGCOLOR="#FFFFFF">
<p align="center"><a href="http://java.apache.org/" target="_top"><img SRC="images/java-apache-project.gif" BORDER="0" WIDTH="609"
HEIGHT="100" ALT="The Java Apache Project"></a></p>
<h1 align="center">Known Bugs</h1>
<div align="center"><center>
<table border="0" width="80%" bgcolor="#000000" cellspacing="0" cellpadding="0">
<tr>
<td width="100%"><table border="0" width="100%" cellpadding="5">
<tr>
<td bgcolor="#e0e0e0">When exception <code>UnavailableException</code> is thrown from a
servlet, response is gets treated like a regular <code>ServletException</code></td>
</tr>
<tr>
<td bgcolor="#f0f0f0">Some Servlet API's are implemented with limited features since the
current protocol used by Apache JServ cannot make function calls to Apache to retrieve
information not available at request time. They are:<ul>
<li><code>ServletRequest.getScheme()</code> - selects only between HTTP/HTTPS.</li>
<li><code>ServletRequest.getRealPath(String path)</code> - returns "DOCUMENT_ROOT"
+ path if available, otherwise null.</li>
<li><code>ServletContext.getRealPath(String path)</code> - returns null. </li>
</ul>
</td>
</tr>
<tr>
<td bgcolor="#e0e0e0">Due to the same protocol restrictions, headers are sent as soon as
something is written on the output, preventing any change on them (sessions, cookies). To
avoid this, you may buffer your output in your servlet and send it afterwards.</td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><strong>Note:</strong> a new version of the protocol (<a
href="protocol/AJPv21.html">AJPv2.1</a>) will take care of those limited features and <a
href="http://java.sun.com/products/servlet/index.html">Servlet API 2.1</a> changed
getRealPath() behavior to match our needs on multi-tier environments introducing a new
resource abstraction. Both of these will are scheduled to be implemented in future
versions.</td>
</tr>
</table>
</td>
</tr>
</table>
</center></div>
<p align="center"><font SIZE="-1">Copyright (c) 1997-99 <a HREF="http://java.apache.org/"
target="_top">The Java Apache Project</a>.<br>
$Id: bugs.html,v 1.13 1999/06/09 05:21:21 jonbolt Exp $<br>
All rights reserved.</font></p>
</body>
</html>
|