You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Bai Shen <ba...@gmail.com> on 2008/09/26 22:30:43 UTC
Accessing server directory from applet
I have an applet that I'm hosting on Tomcat. When I try to access the file
system, I end up on the users file system, not the servers. Is there a way
to connect to the servers file system?
Bai Shen
Re: Accessing server directory from applet
Posted by Mark Thomas <ma...@apache.org>.
Bai Shen wrote:
> I have an applet that I'm hosting on Tomcat. When I try to access the file
> system, I end up on the users file system, not the servers. Is there a way
> to connect to the servers file system?
Applets run on the client so the only option you have for accessing remote
(ie server) content is if the server makes it available, eg via HTTP.
Mark
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Accessing server directory from applet
Posted by Bai Shen <ba...@gmail.com>.
This is an existing applet, so I'm stuck with it until I rewrite the whole
thing.
No security problems. Not sure why. And unfortunately there's not
automatic pull for anything other than images or music.
After I posted, I figured out about the pulling it from the server. I was
jus' wondering if there was a better way.
On Fri, Sep 26, 2008 at 5:17 PM, Johnny Kewl <jo...@kewlstuff.co.za> wrote:
>
> ----- Original Message ----- From: "Bai Shen" <ba...@gmail.com>
> To: "Tomcat Users List" <us...@tomcat.apache.org>
> Sent: Friday, September 26, 2008 10:30 PM
> Subject: Accessing server directory from applet
>
>
>
> I have an applet that I'm hosting on Tomcat. When I try to access the
>> file
>> system, I end up on the users file system, not the servers. Is there a
>> way
>> to connect to the servers file system?
>>
>> Bai Shen
>>
>
> Bai I'm actually surprized you didnt get a security exception... as Mark
> said applets run in the browser... client side.
> The last time I looked at Applets (long long time ago), they dont need any
> special security if you talk to the delivery server...
> Remember that... if you want to talk to any other server... you into
> security issues.
> Things like the script coming from one machine and the applet from another,
> will also catch you...
>
> I think they horrible things... if this is a new project, have a look at
> GWT... or think about a normal web page... if you can.
> Will save you some pain....
>
> ---------------------------------------------------------------------------
> HARBOR : http://www.kewlstuff.co.za/index.htm
> The most powerful application server on earth.
> The only real POJO Application Server.
> See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
> ---------------------------------------------------------------------------
>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
RE: Accessing server directory from applet
Posted by Martin Gainty <mg...@hotmail.com>.
If your client does'nt mind objects loaded into your browser
<embed src="TheAnschluss.swf" id="TestForFlex3" quality="high" bgcolor="#869ca7" name="TheAnschluss" allowscriptaccess="sameDomain" pluginspage="http://www.adobe.com/go/getflashplayer" type="application/x-shockwave-flash" align="middle" height="100%" width="100%">
<noscript>
<object classid="clsid:PingMeOffline"
id="TheAnschluss" width="100%" height="100%"
codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
<param name="movie" value="TheAnschluss.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#869ca7" />
<param name="allowScriptAccess" value="sameDomain" />
then I would start thinking about flex plugin
ping me offline as this is O/T for this forum
Waiting for Gegenwirkung Politische
Martin
______________________________________________
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission.
> From: john@kewlstuff.co.za
> To: users@tomcat.apache.org
> Subject: Re: Accessing server directory from applet
> Date: Fri, 26 Sep 2008 23:17:40 +0200
>
>
> ----- Original Message -----
> From: "Bai Shen" <ba...@gmail.com>
> To: "Tomcat Users List" <us...@tomcat.apache.org>
> Sent: Friday, September 26, 2008 10:30 PM
> Subject: Accessing server directory from applet
>
>
> >I have an applet that I'm hosting on Tomcat. When I try to access the file
> > system, I end up on the users file system, not the servers. Is there a
> > way
> > to connect to the servers file system?
> >
> > Bai Shen
>
> Bai I'm actually surprized you didnt get a security exception... as Mark
> said applets run in the browser... client side.
> The last time I looked at Applets (long long time ago), they dont need any
> special security if you talk to the delivery server...
> Remember that... if you want to talk to any other server... you into
> security issues.
> Things like the script coming from one machine and the applet from another,
> will also catch you...
>
> I think they horrible things... if this is a new project, have a look at
> GWT... or think about a normal web page... if you can.
> Will save you some pain....
>
> ---------------------------------------------------------------------------
> HARBOR : http://www.kewlstuff.co.za/index.htm
> The most powerful application server on earth.
> The only real POJO Application Server.
> See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
> ---------------------------------------------------------------------------
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
_________________________________________________________________
Get more out of the Web. Learn 10 hidden secrets of Windows Live.
http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008
Re: Accessing server directory from applet
Posted by Johnny Kewl <jo...@kewlstuff.co.za>.
----- Original Message -----
From: "Bai Shen" <ba...@gmail.com>
To: "Tomcat Users List" <us...@tomcat.apache.org>
Sent: Friday, September 26, 2008 10:30 PM
Subject: Accessing server directory from applet
>I have an applet that I'm hosting on Tomcat. When I try to access the file
> system, I end up on the users file system, not the servers. Is there a
> way
> to connect to the servers file system?
>
> Bai Shen
Bai I'm actually surprized you didnt get a security exception... as Mark
said applets run in the browser... client side.
The last time I looked at Applets (long long time ago), they dont need any
special security if you talk to the delivery server...
Remember that... if you want to talk to any other server... you into
security issues.
Things like the script coming from one machine and the applet from another,
will also catch you...
I think they horrible things... if this is a new project, have a look at
GWT... or think about a normal web page... if you can.
Will save you some pain....
---------------------------------------------------------------------------
HARBOR : http://www.kewlstuff.co.za/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
---------------------------------------------------------------------------
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org