Win a copy of Svelte and Sapper in Action this week in the JavaScript 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 ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

JSP and Servlet Container

Ranch Hand
Posts: 8943
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
Can a JSP container exist without servlet container. What abt vice -versa.
Can I use JSP v 1.2 container with servlet container v2.2.
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A JSP is compiled to a servlet, so it can't work outside of a servlet engine.
You could presumably build a server that would run JSP but refuse to run Servlets that did not start out as JSPs, but why would you ever want to do that?
A Servlet container cannot run JSPs without a JSP translator (the thing that converts JSP to Servlet code) -- so in principle you can have a non-JSP Servlet container (it wont be J2EE spec complient tho).
It's just a flesh wound! Or a tiny ad:
the value of filler advertising in 2020
    Bookmark Topic Watch Topic
  • New Topic