I had a similar problem when using an applet from the 1.3 plugin
using Tomcat.  When I would post from the applet, the servlet
container would not respond at all, without throwing any exceptions.

This only happened, however, when I sent a cookie referencing
the session id in JSESSIONID.  Using an invalid (bogus) JSESSIONID
allowed the applet/servlet to communicate just fine, but any valid session
id would prevent the servlet container (tomcat) from even calling the
"service" routine of my servlet.

David Goodby has had similar issues and resorted to URL re-writing
for applet-servlet communications, but I am very curious as to
why a HTTP header from a browser setting JSESSIONID is different from
that of an APPLET setting JSESSIONID.

If anyone has any information on this, please see my email from
6/8/00 - "Session Cookies to/from JApplet (using 1.3 plugin)"
which has the http header that my browser sends and the http
header that my applet sends.  They are different, but what about
each of these headers causes the servlet container to respond to
one (the browser) and seemingly ignore the other (applet)?

Maybe I'm missing something and it is not just the header information
that the servlet container is looking at.

In any case, Eswar, I have the same problem and have not been
able to find a solution.  Instead, I pass session information to/from
the applet without using Servlet sessions (not a good solution).

-Mike


----- Original Message -----
From: Eswar Subramanyam <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 26, 2000 6:21 AM
Subject: Re: applet-servlet communication


> in fact this is the way i am invoking . But the applet works when i invoke
> the servlet through a Browser native VM. But when it runs in a plugin 1.3
it
> doesnot invoke. I have tried to access the servlet directly through the
> browser that also works!
>
> I am using apache and servletexec on the serverside....
>
> ----- Message d'origine -----
> De : <[EMAIL PROTECTED]>
> � : <[EMAIL PROTECTED]>
> Envoy� : lundi 26 juin 2000 11:43
> Objet : Re: applet-servlet communication
>
>
> > Hi,
> >
> > How do you try to invoke the servlet?
> >
> > In general, "invoking a servlet" means to access the URL this
> > servlet is configured to service.  You should be able to access
> > the servlet with any HTTP-enabled client (I like curl to troubleshoot
> > such problems on windows, wget might be another option for UNIX),
> > maybe you want to test the servlet's URL from a simple client and
> > see that it works, then make sure that the applet is accessing the
> > same URL with the correct method and parameters.
> >
> > (Divide an conquer...:)
> >
> > Hope this helps,
> >
> > --Amos Shapira
> > WebCollage
> >
> > > -----Original Message-----
> > > From: Eswar Subramanyam [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, June 26, 2000 10:52 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: applet-servlet communication
> > >
> > >
> > > thanx dave
> > >
> > > But i am using servlet-exec and did not find any cookies setting ..
> > > Can you please tell me how to overcome this problem ? I will
> > > give you a
> > > brief explanation
> > >
> > > I have an applet running with Java plugin 1.2 Which needs to
> > > write a file on
> > > the server.
> > > I am using a servlet to accomplish this job.
> > >
> > > But i donot understand why my applet is not able to invoke my
> > > servlet ? Not
> > > even Init method ...
> > > And on the other hand there is no exception on either sides ???
> > >
> > > ----- Message d'origine -----
> > > De : <[EMAIL PROTECTED]>
> > > � : <[EMAIL PROTECTED]>
> > > Envoy� : vendredi 23 juin 2000 22:15
> > > Objet : Re: applet-servlet communication
> > >
> > >
> > > > Session tracking from the plugin is not straightforward
> > > because the applet
> > > > in the plugin does not really belong to the web page. You
> > > will have to
> > > > manually do session tracking. One way is to turn off cookie
> > > support in the
> > > > servlet engine and use URL rewriting.
> > > > Dave Godbey
> > > >
> > > > -----Original Message-----
> > > > From: Eswar Subramanyam [mailto:[EMAIL PROTECTED]]
> > > > Sent: Friday, June 23, 2000 12:57 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Re: applet-servlet communication
> > > >
> > > >
> > > > I am doing the same and really stuk inbetween Java plugin
> > > 1.2.2, Servlet
> > > and
> > > > Apache ????
> > > > If you get some response please let me know ...
> > > > ----- Message d'origine -----
> > > > De : <[EMAIL PROTECTED]>
> > > > � : <[EMAIL PROTECTED]>
> > > > Envoy� : vendredi 23 juin 2000 17:55
> > > > Objet : applet-servlet communication
> > > >
> > > >
> > > > > can some one explain the specifics of applet-servlet
> > > communication?
> > > > >
> > > > > thanks in advance
> > > > >
> > > > > kannan d.
> > > > >
> > > > >
> > > > >
> > > ______________________________________________________________
> > > _________
> > > > >
> > > > > $1 million in prizes! 20 daily instant winners.
> > > > > AltaVista Rewards: Click here to win!
> > > > > http://shopping.altavista.com/e.sdc?e=3
> > > > >
> > > > >
> > > ______________________________________________________________
> > > _________
> > > > >
> > > > >
> > > >
> > > ______________________________________________________________
> > > _____________
> > > > > To unsubscribe, send email to [EMAIL PROTECTED] and
> > > include in the
> > > > body
> > > > > of the message "signoff SERVLET-INTEREST".
> > > > >
> > > > > Archives:
> > http://archives.java.sun.com/archives/servlet-interest.html
> > > > Resources:
> http://java.sun.com/products/servlet/external-resources.html
> > > > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> > > >
> > >
> > >
> >
>
___________________________________________________________________________
> > > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> > body
> > > of the message "signoff SERVLET-INTEREST".
> > >
> > > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > > Resources:
http://java.sun.com/products/servlet/external-resources.html
> > > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> > >
> > >
> >
>
___________________________________________________________________________
> > > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> > body
> > > of the message "signoff SERVLET-INTEREST".
> > >
> > > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > > Resources:
http://java.sun.com/products/servlet/external-resources.html
> > > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> > >
> >
> >
>
___________________________________________________________________________
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > Resources: http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> >
> >
>
___________________________________________________________________________
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > Resources: http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> >
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to