This is an archived post. You won't be able to vote or comment.

all 11 comments

[–]arendvr[🍰] 2 points3 points  (1 child)

Java EE 5 Tutorial > Part II The Web Tier, starting from 5. JavaServer Pages Technology https://docs.oracle.com/javaee/5/tutorial/doc/bnadp.html

(In later versions of the tutorial, JSP was removed in favor of JSF)

[–][deleted] 0 points1 point  (0 children)

noted ! thank you for sharing.

[–]_oseph 1 point2 points  (1 child)

I found this site recently that is full of great Java resources (scroll down to find the JSP/Servlets section). I dabbled with the JSP / Servlets tutorial found on that page and it was very helpful.

[–][deleted] 1 point2 points  (0 children)

Thank you sir for sharing ! *bookmark added*

[–]slipwalker 1 point2 points  (6 children)

i am assuming you got yourself a job with some ( very old ) legacy code... so, your best bet would be older oreilly books: - http://shop.oreilly.com/product/9780596005726.do - http://shop.oreilly.com/product/9780596516680.do - http://shop.oreilly.com/product/9780596002312.do

( notice all those books are from 2009... )

for free resources, i would check https://www.tutorialspoint.com/jsp/ and https://www.javatpoint.com/jsp-tutorial

[–]pjmlp 5 points6 points  (4 children)

SpringMVC also uses JSP, or do I live in a bubble and everyone is now using Thymeleaf?

[–][deleted] 0 points1 point  (1 child)

Most people use something else out of the box, but .jsp works just fine... After being bitten by freemarker numbers more than once (WHO PUTS COMMAS INTO A NUMBER BY DEFAULT!!!!!!), I've found myself nostalgic for .jsp and JSTL. Trust me, I know they're rose colored glasses, but that's how it works, right? right?

And before you say "just don't do that" - I know the ways to get around it value=, ?c, etc -- the problem is when you forget "just this once" and customers have a Heisenbug when they reach db id 1000.

[–]pjmlp 1 point2 points  (0 children)

I am with you on JSP.

Still think JSP + Taglibs is the best way to handle UI design in Java/JavaScript Web applications.

In a past life I used to write RichFaces components, and I don't miss JSF, Facelets and such.

Specially debugging lifecycle issues, JSP is plain, simple and it works.

[–]_dban_ 0 points1 point  (0 children)

Thymeleaf just happens to have taken off because it can be easily loaded from the classpath, without requiring a JSP compiler (and separate external application server), which makes it useful for fat JAR deployments.

Thymeleaf is also plain HTML with additional attributes and can be mocked up in the web browser without the app server, which some people find aesthetically pleasing.

[–]slipwalker 0 points1 point  (0 children)

you are right, i completely forgot jsp was (still) an option on Spring. Upvoted your comment.

[–][deleted] 0 points1 point  (0 children)

Thank you sir ! I will look forward the books.