tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wyn Easton <wyn_eas...@yahoo.com>
Subject Re: applet-servlet communication
Date Tue, 30 Jan 2001 14:26:26 GMT
Carlos - I'm curious, how are you sending the data from the applet
to the servlet?  Why do you think the applet is setup to use the "POST"
method?

You could always call your doPost() method in your servlet from
the doGet() method.  


--- Carlos R Armas <armas@lucent.com> wrote:
> 
> I am trying to have an applet communicate with a servlet. I don't
> want
> to use <form> so I can't set the method to GET/POST. I do want to
> restrict
> the servelt to only use POST, not GET.
> 
> The HttpServletResponse/HttpServletRequest classes are being used to
> exchange the messages. I have the applet "sending" the data... I
> believe
> using the POST method. The servlet on the other hand, gets the
> initial
> communication and session information.... but the actual data never
> arrives and the method that the servlet claims to have used is GET.
> The
> servlet communicates back to the applet with no problem.
> 
> Now, the question is: Is there some configuration needed so that when
> the
> applet sends the information (to tomcat?) it can be passed on to the
> servlet using the chosen -POST- delivery method?
> 
> The servlet works fine if I test it with a html file that has a form
> which
> uses POST to send the data. So half the implementation is working.
> 
> Any help will be appreciated.
> 
> armas
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, email: tomcat-user-help@jakarta.apache.org
> 


=====
Wyn Easton
wyn_easton@yahoo.com

__________________________________________________
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

Mime
View raw message