Javascript is a browser scripting language, and if I'm not mistaken, JSP is Java Server Pages, which is interpreted by the server like PHP or ASP.
javascript is done on the client side jsp pages are done on the server side JSP is like a php application where it can interact with a database. Javascript cannot do that. It's NO way related, other than sharing "java" in it's name.... same case for the difference b/w "java" and "javascript". The name "java" came when the foudners were drinking at the coffee shop.
It's an important factor to get straight before you start asking "which database is good to use???" Javascript is good for little stuff on a site and for ajax. JSP is a server side language and generates the html. Totally different. My experience with JSP is that it's not a "teach yourself" language and I'd recommend you look at PHP or ASP for the serverside stuff.