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]

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.
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?
> 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.