> Your URL looks different than the one first posted. Does this one also fail
> within your applet?
The first one was definitely wrong. So copy the URL
`http://ivy:9090/servlet/com.db.docserv.servlet.AdminServlet' from the
Java Console and pasted that directly in to the browser.
Lo and behold IE5.0 raised a "File Save As" dialog and
I saved the java object sent by the servlet.
So I know the URL works.
Yet the URL causes `FileNotFoundException' inside the
applet with plugin jre 1.3.
So I am stuck basically with implementation that does work.
(2) My objects are already java.io.serializable. So that is fine.
(3) That's great because I didn't want delve into XML serialisation of Java objects
over HTTP tunnelling!
Ok, I give up for now, it's Friday. It's 19h30 in London BST and I wanna go home
Thanx everyone for their help. Attack the problem on Monday
*Cheers*
--
Peter Pilgrim
Welcome to the "Me Too" generation.
---------------------------------------- Message History
----------------------------------------
From: [EMAIL PROTECTED] on 22/09/2000 18:02
Please respond to [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
cc:
Subject: Re: HTTP Tunnelling + Applet + Java Plug1.3 + Servlets 2.0
1) The plugin will be located/loaded on the client machine. The applet can
only communicate with the machine that delivered it. So make sure the web
page is delivered up by a web server, not via a file:// local call. The most
common configuration is to load the servlet engine on the web server
machine, but this is not required. As long as the two machines are behind
the same firewall.
2) You do not need special permission. If you are streaming your own class
objects, then the class needs to implement serializable. Provide class file
on both sides. The objects we usuall shuffle back and forth are Vectors and
Hashtables, and these already implement Serializable.
3) Backwards compatability should not be an issue.
Dave
-----Original Message-----
From: Peter Pilgrim [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 22, 2000 12:03 PM
To: [EMAIL PROTECTED]
Subject: Re: HTTP Tunnelling + Applet + Java Plug1.3 + Servlets 2.0
Thanks David
I pasted the URL `http://ivy:9090/servlet/com.db.docserv.servlet.AdminSer
vlet' directly in Internet Explorer 5 and managed to download a servlet
class.
Therefore the servlet is not the problem.
(1) Regard applet security: Does the Java Plugin binary and the Java
Servlets
have to be on the same server host?
(2) Do I need any special permissions to access serialised objects?
(3) My servlets are JDK 1.1.7 and the plugin is obvious JDK 1.3, are
there any serialisation issues that exists between different Java platforms?
Can I sent java object made of 1.1.7 and get it read by VM of 1.3?
tia
--
Peter Pilgrim
Welcome to the "Me Too" generation.
---------------------------------------- Message History
----------------------------------------
From: [EMAIL PROTECTED] on 22/09/2000 14:09
Please respond to [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
cc:
Subject: Re: HTTP Tunnelling + Applet + Java Plug1.3 + Servlets 2.0
Yes. We insist on having Swing in our applets, so we do it all the time.
Your URL:
`http://poppy.dev.lon.deuba.com:9090/pilgpe/servlet/com.db.docserv.servlet.A
dminServlet'
looks suspicious. By default, the servlet directory is usually virtualed to:
`http://poppy.dev.lon.deuba.com:9090/servlet/com.db.docserv.servlet.AdminSer
vlet'
Did you take care to make sure the virtual directory for the servlet engine
was set up correctly?
If you paste the URL directly into the browser, do you also get the file not
found exception?
Finally, your life will get interesting when you try to use session tracking
with the plugin configuration. Use URL rewriting for this.
Dave
--
This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorised copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.
___________________________________________________________________________
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
--
This e-mail may contain confidential and/or privileged information. If you are not the
intended recipient (or have received this e-mail in error) please notify the sender
immediately and destroy this e-mail. Any unauthorised copying, disclosure or
distribution of the material in this e-mail is strictly forbidden.
___________________________________________________________________________
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