Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get started building web apps with Java? [closed]

I want to start web developing with java. I don't know how to start, what to learn, or what is the best web framework to learn and use. Help me out?

like image 882
Radi Avatar asked Sep 06 '09 07:09

Radi


People also ask

Can you build a web app with Java?

Java provides some technologies like Servlet and JSP that allow us to develop and deploy a web application on a server easily. It also provides some frameworks such as Spring, Spring Boot that simplify the work and provide an efficient way to develop a web application.

Is Java still used for web apps?

Java is the 5th most used programming language among developers worldwide as of 2021. Even with technologies like Python and Node. js, Java development services continue to grow.


2 Answers

I assume, that you're only new to web apps and not to Java itself.

For a starter, I can recommend the Apache Wicket framework for the front end. Their web site is full of examples, the mailing lists are a great place to get started, and Wicket in Action was an enjoyable read.

If you want to work with Java Server Pages (JSP), then you should definitely also include Java Server Faces (JSF) which make working with JSPs a lot easier. I can't advocate any good books to you as I went for web tutorials mainly. You might want to have a look at Apache MyFaces.

For the business logik, I guess the standard is Enterprise JavaBeans (EJB). I liked Mastering Enterprise JavaBeans 3.0. An older version of the book is available for free at TheServerSide.com. You should avoid EJB versions older than 3.0, because they are a PITA!

A separate part of the EJB 3.0 specification is the Java Persistence API 1.0 (see, e.g., Apache OpenJPA though the documentation is patchy). Other frameworks that support JPA are, e.g., Spring or JPOX (now being called DataNucleus).

Finally, if you want an application server for testing, there are JBoss by RedHat, SUN's Glassfish and Apache Geronimo (I preferred the last one, but you may have noticed my preference for Apache projects already ;-))

Good luck!

like image 140
janko Avatar answered Nov 15 '22 07:11

janko


Well if you do not know much about Java, then first I suggest going back and getting your foundation in Java strong first (cause after all JSPs are java code embedded inside HTML), then proceed to learning about servlets and then move on to JSPs.

As far as learning JSPs is concerned, I would suggest buy a book, Head First Servlets and JSP is pretty good book.

Head First Servlets and JSP

JSP Tutorial

Getting Started with Web application - JSP/Servlet

like image 32
KV Prajapati Avatar answered Nov 15 '22 08:11

KV Prajapati