New to JSP and Servlet - Struggling with database
New to servlet and JSP (Maven project) using tomcat 11.0.1
Hi there,
I'm new to Servlets and JSP, and I'm feeling a bit stuck. I'm having trouble retrieving items from a database and displaying them on a JSP page. I think I might be missing something, but I'm not sure what.
Any tips or guidance would be greatly appreciated!
14 Replies
⌛
This post has been reserved for your question.
Hey @Lithor! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
my pom.xml is like this
Dashboard.jsp is like this
Giving this kind of error?
Hard to say what threw the exception.
Users of Tomcat 11 onwards should be aware that, as a result of the move from Java EE to Jakarta EE as part of the transfer of Java EE to the Eclipse Foundation, the primary package for all implemented APIs has changed from javax.* to jakarta.*. This will almost certainly require code changes to enable applications to migrate from Tomcat 9 and earlier to Tomcat 11 and later. A migration tool has been developed to aid this process.But it seems you have Jakarta everywhere?
yeah i'm trying to use jakarta but it keeps saying i have to use jakarta instead of javax
i didnt use javax in my project?
Could happen if you have some dependency that tries to load javax.
Ah, i see
well the problem is i don't see the dependecy that tries to use javax :/
oh, creep
💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.