Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Simple Java web framework [closed]

Is there any simple java web framework like sinatra (for ruby) or web.py (for python)?

like image 512
Gabriel Avatar asked Jan 24 '10 01:01

Gabriel


People also ask

What is a Java Web framework?

A Java framework is specific to the Java programming language, used as a platform for developing software applications and Java programs. Java frameworks may include predefined classes and functions used to process, input, and manage hardware devices, as well as interact with system software.

Is JSP is a framework?

Servlets and JSPs The Servlet and JSP are incredibly simple ways to handle an incoming request, and to develop HTML that gets displayed inside a client's web browser, respectively. All the existing Java-based web frameworks simply build on top of the Servlet and JSP API.


2 Answers

If you want a strict Java framework Spark might be an alternative:

import static spark.Spark.*;  public class HelloWorld {    public static void main(String[] args) {       get("/hello", (req, res) -> "Hello World");    } } 
like image 181
pka Avatar answered Sep 25 '22 23:09

pka


Play. Haven't tried it myself but heard only good things about it and seems to be quite beginner-friendly.

like image 20
helpermethod Avatar answered Sep 26 '22 23:09

helpermethod