----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

jon * wrote:

> Wow. This is a simple fix.
> 
> You do not have an out.close() in your code (it should happen in a finally
> block to ensure that it will be executed even if an exception is thrown).
> You might also want to try the latest version of Apache JServ from CVS. I
> made a one line code correction earlier today that will probably help in
> cases where you forget to put an out.close() into your code.

I was running off of the CVS version as of about an hour before I posted
that message.  Adding out.close() did not fix it (since the problem was
in reading data from Apache into JServ), but out.close() is a good
idea.  The patch sent by Jon Smirl does fix this problem.  I sent you a
patch that should work (his diff didn't).

> Also, which JSDK are you using? Are you using the clone one and not the
> official Sun one? If so, older versions of it had bugs with this stuff I
> believe.

JSDK 2.0 from Sun.

> Lastly, I hope you don't really write code like that for your servlets. You
> should at least be using ECS. It would make your code look a LOT better.
> <http://java.apache.org/ecs/>. If you want to have an easier to use system
> for creating sites, you should use Turbine
> <http://java.apache.org/turbine/>. With Turbine, your code will never have
> the issues of forgetting to put in out.close().

The idea for submitting a test case was to remove all variables and to
make it as simple to compile as possible.  We're actually using a
homegrown html generation package, as well as our own servlet framework
(which appears to be fairly similar to Turbine).


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to