Can we able to write code File transfer protocol code in HTTPServlet file ?

Can we able to write code File transfer protocol code in Http file ?if Yes , give some details about how to write if No, give some reason why not .Thanks
[189 byte] By [PatsDovea] at [2007-11-26 16:29:48]
# 1
Please read the line right above "Welcome, PatsDove" on the left of this page.
CaptainMorgan08a at 2007-7-8 22:54:13 > top of Java-index,Java Essentials,Java Programming...
# 2
I want to ask can we able to write a code which is used for FTP purpose in a java file which is work(handling Http request ) as HTTPservlet.
PatsDovea at 2007-7-8 22:54:13 > top of Java-index,Java Essentials,Java Programming...
# 3
Yes, a servlet can act as an FTP client. You would do that the same way as in any other Java code.No, a servlet can not act as an FTP server.You didn't say which of these was your question, so you get both answers.
DrClapa at 2007-7-8 22:54:13 > top of Java-index,Java Essentials,Java Programming...
# 4
Hi Paul(DrClap)My question is ,if we are using a java file(servlet) which is handing httprequest , can we use this to handle FTP request also.or can we able to write FTP code in above mentioned file?
PatsDovea at 2007-7-8 22:54:13 > top of Java-index,Java Essentials,Java Programming...
# 5

> Hi Paul(DrClap)

> My question is ,if we are using a java

> file(servlet) which is handing httprequest , can we

> use this to handle FTP request also.

As I already said, you can't use a servlet as an FTP server.

> can we able to write FTP code in above mentioned file?

As I already politely pointed out, "FTP code" is ambiguous until you specify whether you mean server or client code.

So. If you don't understand what clients and servers are, then drop this question and go away until you do understand. It's not that complicated.

And please don't waste my time by responding with the same questions over again.

DrClapa at 2007-7-8 22:54:13 > top of Java-index,Java Essentials,Java Programming...