Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!news-xxxfer.readnews.com!news-out.readnews.com!transit3.readnews.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: Lew Newsgroups: comp.lang.java.programmer Subject: Re: Apache JDBC utils Date: Wed, 2 May 2012 16:18:23 -0700 (PDT) Organization: http://groups.google.com Lines: 73 Message-ID: <31980135.2149.1336000704354.JavaMail.geo-discussion-forums@pbcvn7> References: <28822840.1257.1335993779644.JavaMail.geo-discussion-forums@pbbpz9> NNTP-Posting-Host: 69.28.149.29 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1336000704 9066 127.0.0.1 (2 May 2012 23:18:24 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 2 May 2012 23:18:24 +0000 (UTC) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=69.28.149.29; posting-account=CP-lKQoAAAAGtB5diOuGlDQk0jIwmH0T User-Agent: G2/1.0 Xref: csiph.com comp.lang.java.programmer:14168 On Wednesday, May 2, 2012 3:03:57 PM UTC-7, Jan Burse wrote: > Lew schrieb: > > Scriptlet in JSP is an antipattern. > > No, > Java EE 6 calls it even "deprecated". > > But advantage of JSP is that it is readily > available. And its actually very old, already > around 1990. But you will not hear some praise > of it from me. That "but" has nothing to do with the inadvisability of putting scriptlet in JSP. Nor do the advantages or disadvantages JSP have anything to do with the advisability of scriptlet therein. The age of JSP is even less relevant. Java is older than JSP and no one is suggesting we not use Java, either. > It has more been a conceptual issue in > matula how to generate XXXBean. But you > can of course plug-in your preffered > template language in the below flow: > > +--------+ +-------------+ > | DB | | .properties | > +--------+ +-------------+ > | | > ------ ----- > | | > v v > +--------+ > |>>Here<<| > +--------+ > | > v > +------------+ > | XXXBean | > +------------+ > > Now I am waiting for a post that says > .properties files are an anti pattern. > Which I can also agree upon. So the > point of the .properties files here is > to provide annotation of the DB schema. > > Of course one can also use here anything > else than .properties files that allows > for peristence or input of some > annotations. So the flow is basically > as follows: > > +--------+ +-------------+ > | DB | | >> Here 2 <<| > +--------+ +-------------+ > | | > ------ ----- > | | > v v > +-----------+ > |>>Here 1 <<| > +-----------+ > | > v > +------------+ > | XXXBean | > +------------+ Why in the world would someone consider properties files an antipattern? Don't use scriptlet in JSPs. -- Lew