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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "smtp,ftp protocol in Tomcat" Watch "smtp,ftp protocol in Tomcat" New topic
Author

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
Marshal

Joined: Mar 22, 2005
Posts: 41634
    
  55
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 ]

Ping & DNS - my free Android networking tools app
Neerav Narielwala
Ranch Hand

Joined: Dec 08, 2006
Posts: 106
JUpload

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="http://www.java-tips.org/java-tutorials/tutorials/" target="_blank" rel="nofollow">Java Tutorials</a> | <a href="http://www.planet-java.org" target="_blank" rel="nofollow">Java Weblog</a> | <a href="http://computer-engineering.science-tips.org" target="_blank" rel="nofollow">Computing Articles</a>
Ben Souther
Sheriff

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: http://aspose.com/file-tools
 
subject: smtp,ftp protocol in Tomcat