This page doesn't describe where to put this code. Can you explain that? -Siobhan
Siobhan wrote: > I would like directions or steps on how to set up a working Comet test > example. I'm very new to Comet and haven't been able to find a step-by-step > process as to how a Comet application is set up using a servlet with Tomcat. > > I want something like: > > 1. Change the Nio connector. Find the file.....and change....etc. > 2. Place this Java servlet code in the .... directory....etc. > 3. Place this jsp code....in the .... directory....etc. > ... Ditch the idea of using JSP completely, you won't be able to, as Matthias said below. Comet servlets need to implement the org.apache.catalina.CometProcessor interface, a compiled JSP will not have this. (See http://tomcat.apache.org/tomcat-6.0-doc/aio.html). The page above has example code. p > Every example I try seems not to work and I want to make sure that I'm > following the proper steps and not leaving anything out. > > -Siobhan > > -----Original Message----- > From: Reich, Matthias > Sent: Monday, January 21, 2008 9:49 AM > To: Tomcat Users List > Subject: RE: Comet Development > > I think you need to explain a little more on what you want to achieve by > using comet with JSPs. > > The JSP processing model is bound to the traditional Servlet processing > model, > and a compiled JSP is a traditional Servlet - not a Comet Servlet. > I am not sure if including response snippets generated by a JSP into the > response stream via a call to RequestDispatcher.include would work. > > Regards, > Matthias > > -----Original Message----- > From: Siobhan > Sent: Wednesday, January 16, 2008 8:24 PM > To: 'Tomcat Users List' > Subject: RE: Comet Development > > Ok. But how is it all suppose to be put together? I want to use comet > using > jsp, but I don't see any jsp code. > > > -----Original Message----- > From: Peter Warren [mailto:[EMAIL PROTECTED] > Sent: Wednesday, January 16, 2008 12:42 PM > To: Tomcat Users List > Subject: Re: Comet Development > > This post > (http://www.nabble.com/comet-questions-td14673697.html#a14673697) > contains test code for both a client & comet servlet. See if it > helps. > > On Jan 16, 2008 10:35 AM, Siobhan <[EMAIL PROTECTED]> wrote: >> To anyone who has successfully used Comet: >> >> >> >> I've been trying to use Comet with Tomcat 6.0 for a few weeks now and > have >> been unsuccessful. I'm so frustrated with the lack of documentation > and > the >> unusable example that was given with Tomcat. >> >> >> >> Are there any step-by-step instructions on how to successfully > implement a >> test program? >> >> >> >> -SB >> >> > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]