Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Minimal Java webserver with JSP support

What are some of the smallest Java webservers with JSP support? Mostly just looking for how to implement JSP support using built-in code.

Or is there no such thing? Are the only things out there, full-blown J2EE webservers?

The purpose of getting some of the JSP component(s) is so we can use them in our own webserver.

like image 745
700 Software Avatar asked Jul 10 '11 18:07

700 Software


3 Answers

Take a look at Jetty: http://jetty.codehaus.org/jetty/

Jetty is used in a wide variety of projects and products. Jetty can be embedded in devices, tools, frameworks, application servers, and clusters. See the Jetty Powered page for more uses of Jetty.

like image 101
Eric Levine Avatar answered Oct 23 '22 14:10

Eric Levine


I suggest you look at how Winstone (which by default is without JSP) allows for Jasper to be plugged in to get JSP-support. This approach is - to me - a bit more minimalistic than the Jetty one and easier to analyze in this particular regard.

http://winstone.sourceforge.net/

Out of curiosity, why are you developing your own webserver?

like image 1
Thorbjørn Ravn Andersen Avatar answered Oct 23 '22 14:10

Thorbjørn Ravn Andersen


If you want a really small one, check TinyJavaWebServer. It has JSP support, and it is way smaller than jetty.

Also, you can check everyone here: http://java-source.net/open-source/web-servers

like image 1
Pablo Grisafi Avatar answered Oct 23 '22 14:10

Pablo Grisafi