Jonathan,
  Thank you very much.  It may take me a little while,
but I am going to make every effort to understand the
improvements you made.
   I will say, that netscape is loading the html much
quicker.  Nevertheless, once in a while it does take a
while to load the page...  Sometimes it even loads the
page, but continues to appear as if more data is
loading.  I guess that these are just netscape issues.

-Amos Lieberman





--- Jonathan Pierce <[EMAIL PROTECTED]>
wrote:
> Amos,
> 
> I fixed a few things for you. Try my version.
> 
> #1: There was no need to keep allocating
> StringBuffers, I just passed the output
> PrintWriter.
> #2: I fixed your form action to use the request
> context path for the action
> instead of hard-coding it.
> #3. I added a call to out.flush () before your
> out.close () as I suggested
> before to force the output stream to flush.
> 
> Let me know if it runs fast now...
> 
> Jonathan   
> 
> ____________________Reply
> Separator____________________
> Subject:    Re: Re[2]: Servlet Runs SLow
> Author: [EMAIL PROTECTED]
> Date:       8/15/2001 9:42 AM
> 
> Jonathan,
> 
> Attached are the servlet and object files
> i'm new to Java, so my design may be poor.  Let me
> know if you have any questions.
> 
> Thanks,
>    -Amos
> 
> --- Jonathan Pierce <[EMAIL PROTECTED]>
> wrote:
> > The problem is probably something you are doing in
> > your servlet. 
> > Try hitting the /examples/servlet/SnoopServlet in
> > your action instead of your
> > /jd/Calendar call and see if it is fast.
> > 
> >  If you want, send me the source to your servlet
> and
> > I'll take a look at what
> > you are doing that Netscape is sensitive to. 
> > 
> > Perhaps you are not flushing the output stream in
> > your response.
> > 
> > ____________________Reply
> > Separator____________________
> > Subject:    Re: Servlet Runs SLow
> > Author: [EMAIL PROTECTED]
> > Date:       8/15/2001 9:10 AM
> > 
> > Sorry, I'm out of ideas.  The servlets I'm working
> > on work fine in both
> > Netscape and IE.  You may want to try to collect
> > some more information
> > (log begin/end times in the servlet, use a network
> > monitor to see what
> > is happening, try different Netscape settings) and
> > see if anything
> > unusual is happening.
> > 
> > Jim
> > 
> > --- "A.L." <[EMAIL PROTECTED]> wrote:
> > > The first time I load the page in Netscape
> > everything
> > > seems fine,  it loads almost instantaneously. 
> > > However, when I submit the query to change the
> > month
> > > calendar, netscape takes a while to reload the
> > page
> > > and show the new calendar.  I can see that
> TOmcat
> > > receives the request immediately, and I assume
> > that
> > > since Netscape appears to be loading it receives
> > the
> > > response immediatley.
> > > 
> > > Thanks,
> > >   -Amos
> > > 
> > > 
> > > --- Jim Seach <[EMAIL PROTECTED]> wrote:
> > > > I copied the html into a static file and was
> > able to
> > > > bring it up
> > > > immediately in Netscape 4.76, so it doesn't
> > appear
> > > > to be the contents
> > > > of the form that is the problem.
> > > > 
> > > > Does it take a long time to display, or does
> it
> > just
> > > > not appear to
> > > > finish loading?  I have also noticed that
> > sometimes
> > > > even after the page
> > > > has loaded, Netscape still appears to be
> > working. 
> > > > So far, I have just
> > > > ignored it.
> > > > 
> > > > Jim
> > > > 
> > > > --- "A.L." <[EMAIL PROTECTED]> wrote:
> > > > > Below is the code that is returned:
> > > > > 
> > > > > It seems that Netscape might have problems
> > with
> > > > the
> > > > > FORM data.  It does seem as if the server is
> > > > sending
> > > > > the reponse immediately.  Or maybe it is
> > having
> > > > > trouble with the javascript functions... Any
> > > > > suggestions
> > > > > 
> > > > > (I am only running TOmcat by the way)
> > > > > 
> > > > > 
> > > > > 
> > > > > <html>
> > > > > <head>
> > > > > <title>Calendar</title>
> > > > > </head>
> > > > > <BODY BGCOLOR="#FDF5E6">
> > > > > <FORM METHOD=POST ACTION="/jd/Calendar">
> > > > > <SELECT NAME="dates" MULTIPLE>
> > > > > <OPTION VALUE="Jan"> January </OPTION>
> > > > > <OPTION VALUE="Feb"> February</OPTION>
> > > > > <OPTION VALUE="Mar"> March</OPTION>
> > > > > <OPTION VALUE="Apr"> April</OPTION>
> > > > > <OPTION VALUE="May"> May</OPTION>
> > > > > <OPTION VALUE="June"> June</OPTION>
> > > > > </SELECT>
> > > > > <INPUT TYPE=SUBMIT>
> > > > > </FORM>
> > > > > March2001<form METHOD=GET
> > > > > NAME="date2"ACTION="/jd/Calendar"><input
> > > > type=hidden
> > > > > NAME="d"><script
> > language="JavaScript">function
> > > > > choose(n){document.date2.d.value =
> > > > >
> > > >
> > >
> >
>
n;document.date2.submit();}</script><table><tr><td></td><td></td><td></td><td></
> > td><td><a
> > > > > href="javascript:choose(1)">1</a></td><td><a
> > > > > href="javascript:choose(2)">2</a></td><td><a
> > > > >
> > > >
> > >
> >
>
href="javascript:choose(3)">3</a></td></tr><tr><td><a
> > > > > href="javascript:choose(4)">4</a></td><td><a
> > > > > href="javascript:choose(5)">5</a></td><td><a
> > > > > href="javascript:choose(6)">6</a></td><td><a
> > > > > href="javascript:choose(7)">7</a></td><td><a
> > > > > href="javascript:choose(8)">8</a></td><td><a
> > > > > href="javascript:choose(9)">9</a></td><td><a
> > > > >
> > > >
> > >
> >
>
href="javascript:choose(10)">10</a></td></tr><tr><td><a
> > > > >
> href="javascript:choose(11)">11</a></td><td><a
> > > > >
> href="javascript:choose(12)">12</a></td><td><a
> > > > >
> href="javascript:choose(13)">13</a></td><td><a
> > > > >
> href="javascript:choose(14)">14</a></td><td><a
> > > > >
> href="javascript:choose(15)">15</a></td><td><a
> > > > >
> href="javascript:choose(16)">16</a></td><td><a
> > > > >
> > > >
> > >
> >
>
href="javascript:choose(17)">17</a></td></tr><tr><td><a
> > > > >
> href="javascript:choose(18)">18</a></td><td><a
> > > > >
> href="javascript:choose(19)">19</a></td><td><a
> > > > >
> href="javascript:choose(20)">20</a></td><td><a
> > > > >
> href="javascript:choose(21)">21</a></td><td><a
> > > > >
> href="javascript:choose(22)">22</a></td><td><a
> > > > >
> href="javascript:choose(23)">23</a></td><td><a
> 
=== message truncated ===

> ATTACHMENT part 2 application/octet-stream
name=Calendar.java


> ATTACHMENT part 3 application/octet-stream
name=perpetualCalendar.java


> ATTACHMENT part 4 application/octet-stream
name=perpetualCalendar.java


> ATTACHMENT part 5 application/octet-stream
name=Calendar.java


> ATTACHMENT part 6 application/octet-stream
name=Calendar.jar



__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

Reply via email to