Accessing server directory from applet

2008-09-26 Thread Bai Shen
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

2008-09-26 Thread Mark Thomas
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Accessing server directory from applet

2008-09-26 Thread Johnny Kewl


- Original Message - 
From: Bai Shen [EMAIL PROTECTED]

To: Tomcat Users List users@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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Accessing server directory from applet

2008-09-26 Thread Martin Gainty

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: [EMAIL PROTECTED]
 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 [EMAIL PROTECTED]
 To: Tomcat Users List users@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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

_
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

2008-09-26 Thread Bai Shen
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 [EMAIL PROTECTED] wrote:


 - Original Message - From: Bai Shen [EMAIL PROTECTED]
 To: Tomcat Users List users@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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]