[thelist] J2EE hosting +

Hassan Schroeder hassan at webtuitive.com
Sat Jul 5 13:17:10 CDT 2003


john at johnallsopp.co.uk wrote:

> I think I'm about to embark on my first serious J2EE implementation. It's
> not a huge project, but seems to warrant it.

I've yet to find a project too small to make good use of JSP.

> And if anyone has any J2EE online resources they'd like to share, now
> seems like a good time for me to collect them :-)

Embrace taglibs :-)

Jakarta: <http://jakarta.apache.org/taglibs/index.html>
JSTL: <http://java.sun.com/products/jsp/jstl/>

Sign up for the taglibs-user at jakarta.apache.org mailing list, and
bookmark the list archive.

No matter what size project it is (or, more accurately, *starts as*)
think MVC. Taglibs will help avoid the urge to embed markup in code.
Never output HTML from a servlet.

And read the Tomcat doc on containers and components --
<http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/index.html>

The "container" aspect of servlet engines is extremely useful. You
can declare resources, like a DataSource (db/login/password), for a
context once and never have to specify it in any of your JSP pages.

I even define things like the project's color scheme, so while I may
use multiple style sheets, there's only *one* file to change when the
customer decides *that* blue's a little too dark.

FWIW!
-- 
Hassan Schroeder ----------------------------- hassan at webtuitive.com
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

                           dream.  code.







More information about the thelist mailing list