I'm new to JSP, but not to Java, and am interested in building a 'web application' with a MySQL back-end. I've read through the book 'Core Servlets and JSP' by Marty Hall and Larry Brown. It seems to cover everything I need, but...
Googling for e.g. JSP and Hibernate (since I don't really want to have to learn all the SQL crap), all I get are links to Struts or Struts2 or other frameworks, and have even come across posts saying 'only old school morons use straight JSP or servlets these days. To be l33t you need Struts2.'
But after taking a look at struts, I think it's really a lot of overkill and have always had an aversion to 'frameworks' anyway, so can someone tell me what I'm missing? Is there really some great advantage to using struts or some other 'framework'? Am I going to get laughed off the stage if I mention I've written my stuff with straight JSP? P.S. the fact that struts1 had to be completely rewritten to get to struts2 seems to indicate to me that I should stay away from it, but I'd be happy to find out I'm misinformed.
Do you want to be l33t or do you want to be an informed developer?
JSP is far from obsolete, and there is a growing movement away from over-blown behemoths like Struts, with the realization that you don't need a large framework to do web development, and that replacing a few lines of Java with 23 lines of configuration isn't all that great an idea after all.
This especially true of modern JSP 2.0 which corrected a lot of the mis-steps taken by earlier versions of JSP.
If you are interested in a small-footprint front controller, look through the Blatant Advertising forum for the entry on Front Man. [ July 13, 2007: Message edited by: Bear Bibeault ]
I really couldn't care less about being l33t, but on the other hand, sometimes perception is important - if you're trying to sell your stuff (or yourself) and your choice of technology is seen as old-fashioned, you'd better have some pretty good reasons (and be able to convincingly articulate them) for going against the tide.
So it's nice to know that the tide is apparently towards JSP and away from overblown frameworks (though you sure wouldn't know it from google results), which was my question - I'm definitely of the 'simpler is better' camp, so thanks for at least validating that I'm not the only one.
I'll +1 everything Bear has said. And not to take anything away from FrontMan, but to show you that there are more than a few folks that have the same opinions we share, take a look at Stripes as well. At least to round your knowledge out. ;)
Originally posted by Edisandro Bessa: If your application is NOT supposed to grow and it's very simple, I think there's no problem in using JSP.
I disagree with this. Keeping the framework simple becomes even more important when a web application gets big and broad.
Simple is not just for for small web apps that aren't "supposed to grow". It's for any web app, especially those that will get complicated enough in their own right without something like Struts to make it even more complicated than it needs to be,