This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Usage of JSPs and Servlets in different technologies Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Usage of JSPs and Servlets in different technologies" Watch "Usage of JSPs and Servlets in different technologies" New topic
Author

Usage of JSPs and Servlets in different technologies

Piotr Nowicki
Ranch Hand

Joined: Jul 13, 2010
Posts: 610

Howdy Ranchers!

I'm just curious - we have a Servlet and its subclasses like HttpServlet. The latter one is about 99% of all the Servlets implemented.
My question is: what about the missing 1%? What are those Servlets? Do you know any real-life examples of Servlets which works on different protocol than HTTP?

Secondly, there is a JspContext and PageContext. The latter one is used in Servlet environment and is quite popular.
The question is similar to the first one: do you know any real-life examples of JSPs and ELs used in different environment than Servlets? What environment could it be?

Cheers!
Abhay Agarwal
Ranch Hand

Joined: Feb 29, 2008
Posts: 1340

Regarding Servlet and HTTP Servlet question, I can think of other protocols like SMTP or FTP. For these protocols, you can implement Servlet interface or extend GenericServlet to provide FTP specific protocol implementation.

http://www.coderanch.com/t/361522/Servlets/java/GenericServlet-FTP - as mentioned in earlier post, we may write FTP servlet but we may not have a servlet container for it to run as Tomcat Servlet container is only customed to handle HTTP servlets.

~ abhay
 
Have you checked out Aspose?
 
subject: Usage of JSPs and Servlets in different technologies
 
It's not a secret anymore!