Hiroshi Kasamatsu wrote:
> I programmed servlet-applet communication and mailed here some times.
> The trouble is that it does not work in internet.
> In local ,however,it works sucessfully.
> I have tried some clues such as URL connections,how to select doPost and
> doGet. All fails.
> My programs work on local machine the address of which
> is 127.0.0.1. In the case of internet, I naturaly use server address.
> That is,servlet URL is http://serveraddress:8181/servlet/MyServlet
> in internet. Is'nt this enough? To deal with the problem,all I can do as a
> programmer is to change address. I feel depressed seriously.
> In local,my programes work,but in internet,they does not work.
> What causes this situation?
>
> Hiroshi Kasamatsu
> [EMAIL PROTECTED]
>
I am not sure, but I suggest you try:
[0]
if you put a html file in your Servlet container-> for example, I suppose you
use Jsdk2.1(win): C:\jsdk2.1\webpages\test.html
can you use Internet to access this html file?
[1]
if [0] is ok, then make a simple Servlet class WITHOUT Applet-Servlet
communication,
and use a broswer to access it.
[2]
if [0] and [1] are all ok, then try Application-Servlet communication :-)
[3]
if [0] and [1] and [2] are all ok, then try Applet-Servlet communication :-)
I just guess perhaps the problem is:
# perhaps your browser has a special HTTP proxy
# perhaps Serializable Java Object can not pass through this HTTP proxy
# perhaps even you can not access a simple Sevlet class which only *returns
html* with this HTTP proxy.
# perhaps even you can not access a html file which is in your Servlet
container
with this HTTP proxy.
So I suggest you try the above :-)
Bo
Nov.12, 2000
___________________________________________________________________________
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