This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi I've been given the unfortunate task of building a web site using servlets and a third party templating technology. That means JSPs are strictly out. Can anyone point me in the direction of some documentation on building java apps using purely servlets. There must be some best practices for this kind of thing. Thanks
Not being able to use JSPs is not the end of the world. If the 3rd party templating stuff is Velocity, then I'd start to smile. I've used it before a few times and have loved it always, and haven't missed JSP at all. The rest of this post assumes that by "JSPs are strictly out" you mean "I have a presentation layer OTHER THAN servlets" (that being: the templating technology you spoke of).
As for tutorials on model-2, I admit I've always been dismayed by the utter *lack* of good ones. The one tutorial on servlets, and JUST sevlets on java.sun.com is from 1996. Everyone always seems so gung-ho about talking about Model-2, but then when it comes time to do some samples, they always run back to doing JSP pages. That is: they ignore their own advice.
A much more recent one is the J2EE tutorial, found here but this is much more than just servlets, and it contains a lot of implementation details regarding the RI J2EE server. Let's not even go there!
And no discussion of this sort should leave out a mention of frameworks. struts While struts has a JSP taglib and recommends JSP for view layer.. in reading their docs you'll probably gather a lot of good information on model2.