Hello! I just started learning Java EE, created simple MySQL DB and decided to retrieve DB data in JSP page using servlets. But nothing shows up, only table headers. Although printed out everything to the console using main method, just to make sure that the getAll() method in DAO layer works. Could you please tell me what am I doing wrong here:
Bear Bibeault wrote:You should also be declaring your JSP/HTML as HTML5, not HTML4. You are apparently using some pretty old and dated source material.
Thanks for quick response, I changed my web.xml specifying HTML5 in it, but it didn't help, same output:( Currently reading Head First JSP & Servlets.
The HTML5 declaration is for the HTML (generated by the JSP) and has nothing to do with the web.xml.
Read the FAQ I linked to; it will show you how to properly configure the web.xml.
Thanks, I read it... Probably the problem was with my Eclipse's workspace: I deleted one messy project in it, reconfigured Tomcat server and cleaned my project and it works!
What could go wrong in a swell place like "The Evil Eye"? Or with this tiny ad?
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!