Meaningless Drivel is fun!
The moose likes Tomcat and the fly likes smtp,ftp protocol in Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "smtp,ftp protocol in Tomcat" Watch "smtp,ftp protocol in Tomcat" New topic

smtp,ftp protocol in Tomcat

Ingoba Ningthoujam
Ranch Hand

Joined: Dec 04, 2006
Posts: 90
can we use smtp,ftp protocol in Tomcat?
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
Are you talking about a servlet making SMTP/FTP connections, or are you talking about accessing Tomcat via SMTP/FTP instead of HTTP?

If the former, then the answer is yes. You can use the JavaMail API for making SMTP connections, and the Jakarta Commons Net library for FTP connections.

If the latter, then this is only theoretically possible. This FAQ page has more detail about why that is so.
[ December 07, 2006: Message edited by: Ulf Dittmer ]
Neerav Narielwala
Ranch Hand

Joined: Dec 08, 2006
Posts: 106

Upload multiple files to the webserver. Using standard HTTP protocol and supporting PHP,ASP,JSP,IIS,Apache,Tomcat,ColdFusion. Features secure HTTP, proxy support, image preview, file transfer resuming, progress bar and more.

<a href="" target="_blank" rel="nofollow">Java Tutorials</a> | <a href="" target="_blank" rel="nofollow">Java Weblog</a> | <a href="" target="_blank" rel="nofollow">Computing Articles</a>
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Neerav Narielwala,

This sounds more like an ad for a product than a answer to the original poster's question.

To answer the original question:
Tomcat is not an FTP or SMTP server but (as Ulf has mentioned) there is nothing stopping an application developer from using the various libraries available to add an FTP Client or SMTP client to their own webapps.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: smtp,ftp protocol in Tomcat
It's not a secret anymore!