Hello!
I am glas that EJB code works now for you!
You may find this article interesting -
https://coderanch.com/t/591307/EJB-JEE/java/learn-Servlets-JSP-JSF-JEE
To my mind it is better to start studying javaee with great book on
Servlets and
JSP! Then you can procede to something like
Struts or
JSF.
Anyway the best is to start with good foundation about constructing a site. I think that Servlets and JSP, JSTL, SQL is just what future web java developer should start with,
because it is basics for learning more advanced technolgies like struts or jsf.
EJB is business logic of web site. Model of web site is represented by entities which map java classes to tables in database(SQL). Finally view part of site is JSP, JSTL, CSS
Best to study is to take serious, large book with many examples. The more examples you understand the better!