Win a copy of AWS Security this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Usage of JSPs and Servlets in different technologies

 
Ranch Hand
Posts: 623
1
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Ranch Hand
Posts: 1376
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

https://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
 
Forget this weirdo. You guys wanna see something really neat? I just have to take off my shoe .... (hint: it's a tiny ad)
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic