Re: Hiding an ftp URL

2004-12-11 Thread Laconia Data Systems
Might be helpful to take a look at the difference between protocols FTP and
HTTP
http://www.webopedia.com/DidYouKnow/Internet/2002/FTP_HTTP.asp
The answer is no You don't need to visually display an ftp address in your
address bar to initiate an FTP session
if you follow the instructions from my previous email you will see how a FTP
transfer can happen almost in background
(more akin to spawned daemon)
HTH,
Martin Gainty
- Original Message - 
From: "Susan Hoddinott" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Saturday, December 11, 2004 3:34 AM
Subject: Re: Hiding an ftp URL


> Hi,
>
> I was attempting to use an http ftp command as in the former case.  I
> thought there might be some way of mapping it to some sort of a synonym
like
> used for servlets in the web.xml file?
>
> Regards,
> Susan Hoddinott
> http://www.hexworx.com
>
> - Original Message - 
> From: "Peter Crowther" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Friday, December 10, 2004 5:28 PM
> Subject: RE: Hiding an ftp URL
>
>
> > > From: Susan Hoddinott [mailto:[EMAIL PROTECTED]
> > > I am wondering what the best way to avoid display of an
> > > ftp URL is when redirecting to an ftp location.
> >
> > Are you redirecting the user's browser to that location, or are you
> > wanting to obtain content from that location to send to the user's
> > browser via a servlet running under (say) Tomcat?  If you want to do the
> > former, it's not possible as the browser's address bar / properties
> > window will show the FTP location.  If the latter, one simple approach
> > would be to write a servlet that opened a ReadStream on the FTP resource
> > and repeatedly read from that and wrote to the servlet's output stream;
> > I have no doubt there would be better and more standard ways if I was
> > more familiar with the servlet spec!
> >
> > - Peter
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Hiding an ftp URL

2004-12-11 Thread Susan Hoddinott
Hi,

I was attempting to use an http ftp command as in the former case.  I
thought there might be some way of mapping it to some sort of a synonym like
used for servlets in the web.xml file?

Regards,
Susan Hoddinott
http://www.hexworx.com

- Original Message - 
From: "Peter Crowther" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, December 10, 2004 5:28 PM
Subject: RE: Hiding an ftp URL


> > From: Susan Hoddinott [mailto:[EMAIL PROTECTED]
> > I am wondering what the best way to avoid display of an
> > ftp URL is when redirecting to an ftp location.
>
> Are you redirecting the user's browser to that location, or are you
> wanting to obtain content from that location to send to the user's
> browser via a servlet running under (say) Tomcat?  If you want to do the
> former, it's not possible as the browser's address bar / properties
> window will show the FTP location.  If the latter, one simple approach
> would be to write a servlet that opened a ReadStream on the FTP resource
> and repeatedly read from that and wrote to the servlet's output stream;
> I have no doubt there would be better and more standard ways if I was
> more familiar with the servlet spec!
>
> - Peter
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Hiding an ftp URL

2004-12-10 Thread Laconia Data Systems
Without knowing what you are transferring or if you are transferring in Passive 
or Active or if there are Proxies setup you can use Sun's FTPClient
sun.net.ftp.FtpClient 
Knowing these limitations

  a.. the FtpClient class is unsupported by Sun (even though it works, they 
could modify or remove it at will in later versions) 
  b.. it doesn't support an automatic way to parse directory listings, which 
makes it quite difficult to list the files and subdirectories on a server 

Here is an example
http://www.nsftools.com/tips/JavaFtp.htm

Viel Gluck,
Martin


  - Original Message - 
  From: Susan Hoddinott 
  To: Tomcat Users List 
  Sent: Friday, December 10, 2004 12:36 AM
  Subject: Hiding an ftp URL


  Hello,

  I am wondering what the best way to avoid display of an ftp URL is when 
redirecting to an ftp location.  The ftp address includes a host name and 
string.  Should it be mapped in web.xml like a servlet, set up as a context 
parameter?  What would be the best and most secure way?

  Regards,
  Susan Hoddinott
  http://www.hexworx.com



--


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]

RE: Hiding an ftp URL

2004-12-10 Thread Shapira, Yoav
Hi,

You could also try forwarding (RequestDispatcher) from your servlet to
the FTP resource, rather than redirecting.  The servlet's address will
remain in the browser's address bar.



Yoav Shapira http://www.yoavshapira.com



-Original Message-
From: Susan Hoddinott [mailto:[EMAIL PROTECTED]
Sent: Friday, December 10, 2004 12:37 AM
To: Tomcat Users List
Subject: Hiding an ftp URL



Hello,



I am wondering what the best way to avoid display of an ftp URL is when
redirecting to an ftp location.  The ftp address includes a host name
and string.  Should it be mapped in web.xml like a servlet, set up as a
context parameter?  What would be the best and most secure way?



Regards,
Susan Hoddinott
http://www.hexworx.com




This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, proprietary 
and/or privileged.  This e-mail is intended only for the individual(s) to whom 
it is addressed, and may not be saved, copied, printed, disclosed or used by 
anyone else.  If you are not the(an) intended recipient, please immediately 
delete this e-mail from your computer system and notify the sender.  Thank you.



RE: Hiding an ftp URL

2004-12-10 Thread Peter Crowther
> From: Susan Hoddinott [mailto:[EMAIL PROTECTED] 
> I am wondering what the best way to avoid display of an
> ftp URL is when redirecting to an ftp location.

Are you redirecting the user's browser to that location, or are you
wanting to obtain content from that location to send to the user's
browser via a servlet running under (say) Tomcat?  If you want to do the
former, it's not possible as the browser's address bar / properties
window will show the FTP location.  If the latter, one simple approach
would be to write a servlet that opened a ReadStream on the FTP resource
and repeatedly read from that and wrote to the servlet's output stream;
I have no doubt there would be better and more standard ways if I was
more familiar with the servlet spec!

- Peter

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]