r/learnjava • u/Forward-Word-9908 • Apr 12 '26
Is it still worth learning Servlets and JSP in 2026 for a Full Stack path?
Hi everyone,
I am currently working through a Java Full Stack roadmap. I've reached the section on Servlets and JSP, but I see a lot of modern tutorials jumping straight into Spring Boot and REST APIs with React/Angular.
I want to make sure I have a solid foundation, but I don't want to spend weeks on "legacy" tech if it’s no longer relevant.
- How much depth should I go into with Servlets?
- Is understanding the Servlet Lifecycle necessary to truly understand how Spring handles requests?
- Should I just learn the basics of JSP to understand SSR (Server-Side Rendering) and then move on?
I’d love to hear from those working in the industry do you ever actually touch these in modern projects, or is it purely for "under-the-hood" knowledge?
Thanks!
14
Upvotes
•
u/AutoModerator Apr 12 '26
Please ensure that:
If any of the above points is not met, your post can and will be removed without further warning.
Code is to be formatted as code block (old reddit/markdown editor: empty line before the code, each code line indented by 4 spaces, new reddit: https://i.imgur.com/EJ7tqek.png) or linked via an external code hoster, like pastebin.com, github gist, github, bitbucket, gitlab, etc.
Please, do not use triple backticks (```) as they will only render properly on new reddit, not on old reddit.
Code blocks look like this:
You do not need to repost unless your post has been removed by a moderator. Just use the edit function of reddit to make sure your post complies with the above.
If your post has remained in violation of these rules for a prolonged period of time (at least an hour), a moderator may remove it at their discretion. In this case, they will comment with an explanation on why it has been removed, and you will be required to resubmit the entire post following the proper procedures.
To potential helpers
Please, do not help if any of the above points are not met, rather report the post. We are trying to improve the quality of posts here. In helping people who can't be bothered to comply with the above points, you are doing the community a disservice.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
12
u/Respicio1 Apr 12 '26
Study about Dispatcher Servlet, without understanding servlets spring will always feel like magic.
You don't need to know everything about servlets but understanding their lifecycle is most important for Java Web development.
JSPs are for views and in the era of API development this has become obsolete, where there is a single backend serving to various frontends (Web, Android and what not)
I will say this don't sink your time in Servlets and JSP instead focus on learning Spring, but you should know what is happening when a request is served on the endpoint written in Spring.
2
u/Western_Objective209 Apr 12 '26
I've been working in Java for a while now and I've never used servlets or JSP. Spring Boot and React are very common, angular is still pretty popular but mostly from legacy projects from early 2010s or so, it's really lost marketshare since
2
u/lprimak Apr 12 '26
Hi,
Servlet is very much relevant, but JSP, not so much anymore. I would ignore JSP. Furthermore, I would not start with Spring, but rather with Jakarta EE (which Servlet is a part of) in order to avoid learning some proprietary platform. Jakarta EE lets you get a full breadth of concepts for full-stack Java development, and lets you see all the tradeoffs and caveats it takes to develop enterprise apps. This is what actually give you that "learning experience" and do that "software engineering" it takes to build and ship production business applications.
1
u/levenspiel_octave Apr 12 '26
I think it could be useful because it helps you to understand more complex systems afterwards
1
u/procrastinatewhynot Apr 12 '26
It’s not really used unless the company is still have legacy code :c we still have them. I migrated to spring boot 3 and we had to kinda make it work.
1
u/tcloetingh Apr 12 '26
Quick overview at most
1
u/Such-Catch8281 Apr 13 '26
jsp i dont think so
1
u/NoOneCanSaveMe Apr 13 '26
What course is it? I am interested.
1
u/omgpassthebacon Apr 15 '26
TL;DR don't spend much time on Servlets & JSPs unless you plan on getting a job where this legacy tech is still in-use.
Servlets and JSP were all the rage back in the 1990's, but SpringWeb kind of nuked the J2EE world (J2EE was the enterprise network spec from Java). Servlets/JSP are the COBOL of the old web. You can ignore them, but...
There are plenty of shops (government/utilities for sure) that are still running legacy apps that use this older spec directly. If you interview for a job at one of these places, knowing the older tech will be a plus for you. But honestly, you probably don't want to work on old legacy crap, but a job is a job :-)
FYI, even though SpringWEB is shiny and cool, if you dig deep enough, you will find they are based on the J2EE servlet spec, so if you are familiar with some of the neat stuff the spec provides, you can take advantage of it. But Spring abstracts away all that J2EE stuff, so technically, you don't need to know about it.
1
u/AdministrativeHost15 Apr 13 '26
Servlets were hot back in 2000.
0
u/arshbio009 Apr 12 '26
I can suggest a paid resource on youtube but believe me your money will be well spent as I have not found anyone explaining under the hood fundamentals this well
Concept && Coding By Sharyansh is the channel name and Honestly I have yet to find another channel that covers spring in such a manner
1
u/[deleted] Apr 13 '26
[removed] — view removed comment