This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes JSP and the fly likes Serving Servlets? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Serving Servlets?" Watch "Serving Servlets?" New topic

Serving Servlets?

Len Padson
Ranch Hand

Joined: Nov 21, 2011
Posts: 40
Hello! I'm very new to servlets. If I have created a java server using a serversocket and sockets to send and receive http requests, I know how to send out html to clients. How would I go about sending a jsp page? Is there a java class for compiling the jsp code within an html page so that it is ready to send to clients? I would very much prefer not to have to use third party servers to serve my jsp.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63049

No, there is no user-callable implementation of the API that provides servlet and JSP capability. The Servlet and JSP APIs are interfaces that containers such as Tomcat and Glassfish implement. Why would you be trying to write your own?

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Serving Servlets?
It's not a secret anymore!