Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@apache.org Received: (qmail 29056 invoked from network); 10 Jul 2003 21:14:47 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 10 Jul 2003 21:14:47 -0000 Received: (qmail 22648 invoked by uid 97); 10 Jul 2003 21:17:21 -0000 Delivered-To: qmlist-jakarta-archive-struts-user@nagoya.betaversion.org Received: (qmail 22641 invoked from network); 10 Jul 2003 21:17:21 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 10 Jul 2003 21:17:21 -0000 Received: (qmail 27024 invoked by uid 500); 10 Jul 2003 21:14:26 -0000 Mailing-List: contact struts-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list struts-user@jakarta.apache.org Received: (qmail 27013 invoked from network); 10 Jul 2003 21:14:26 -0000 Received: from web20710.mail.yahoo.com (216.136.226.183) by daedalus.apache.org with SMTP; 10 Jul 2003 21:14:26 -0000 Message-ID: <20030710211432.87365.qmail@web20710.mail.yahoo.com> Received: from [32.97.110.142] by web20710.mail.yahoo.com via HTTP; Thu, 10 Jul 2003 14:14:32 PDT Date: Thu, 10 Jul 2003 14:14:32 -0700 (PDT) From: David Graham Reply-To: dgraham@apache.org Subject: Re: Using JSTL tags instead of Struts tags To: Struts Users Mailing List In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N --- David Geary wrote: > On Thursday, Jul 10, 2003, at 14:40 America/Denver, David Graham wrote: > > >> The work that you do with JSTL, and therefore in JSP pages instead of > >> actions, involves activities like iterating over data, conditional > >> tests, accessing URLs, i18n, xml manipulation and database access. > >> Except for database updates and transactions, all of those activities > >> are well within the perview of a view. > > > > So you're advocating placing some database logic in the view and some > > > in > > Java classes? I've had to maintain apps written that way and it was a > > complete nightmare. The view has absolutely no business querying the > > database in all but the simplest apps (3 pages max). > > No, I'm just saying that reading the database from a view is sometimes > a viable alternative for smaller applications, especially if you > encapsulate reading the database within the view itself. Then you're only advocating this approach for apps that don't update database data at all, they just view it. Given an app that doesn't update data, is around the 3-5 page mark, and doesn't have to support multiple database types, I agree with you. I have yet to come across any app that fits that description though. David > > I realize I'm bucking traditional wisdom but I don't like to see > lumped together with and . > The last two are much more offensive than the first. > > > david > > > > > David > > > >> > >> > >> david > >> > >>> > >>> I'm open to views against mine, and I also wouldn't dismiss the > >>> advise > >> > >>> of the folks who developed struts, but whenever I read "use JSLT" it > >>> seems to me a step backwards. > >>> > >>> On Thursday, July 10, 2003, at 03:05 PM, Hookom, Jacob wrote: > >>> > >>>> > >>>> Start using it and you will :-). The expression language is the > >>>> best > >>>> thing since sliced bread. > >>>> > >>>> David > >>>> I agree, I'm even using the EL parser to do stuff on completely > >>>> different > >>>> layers for scripting logic. Also, you can VERY easily use JSTL's > >>>> parsing > >>>> objects in your own tags to make them a little more flexible. > >>>> Jacob > >>>> > >>>>> > >>>>> - Keith > >>>>> > >>>>> > >>>>> -----Original Message----- > >>>>> From: David Graham [mailto:grahamdavid1980@yahoo.com] > >>>>> Sent: Thursday, July 10, 2003 9:51 AM > >>>>> To: Struts Users Mailing List > >>>>> Subject: RE: Using JSTL tags instead of Struts tags > >>>>> > >>>>> > >>>>> I don't have any documentation but the only Struts taglibs I use > >>>>> are > >>>>> html > >>>>> and tiles. I replaced my usage of the bean tags with the > >>>>> > >>>>> tag and the Struts logic tags are all replaced with a combination > > >>>>> of > >> > >>>>> the > >>>>> and tags plus the expression language. > >>>>> > >>>>> The JSPs are remarkably easy to maintain and debug using this > >>>>> strategy > >>>>> because there aren't any scriptlets or complicated business logic > > >>>>> in > >>>>> them. > >>>>> > >>>>> David > >>>>> > >>>>> --- "Kamholz, Keith (corp-staff) USX" wrote: > >>>>>> I'd be interested in finding out about this too. > >>>>>> > >>>>>> > >>>>>> -----Original Message----- > >>>>>> From: White, Joshua A (HTSC, CASD) > >>>>> [mailto:Joshua.White@thehartford.com] > >>>>>> Sent: Thursday, July 10, 2003 7:30 AM > >>>>>> To: 'Struts Users Mailing List' > >>>>>> Subject: Using JSTL tags instead of Struts tags > >>>>>> > >>>>>> > >>>>>> A previous thread had encouraged me to look into JSTL. It looks > >>>>>> like > >>>>>> there > >>>>>> are several tags which I could use instead of Struts tags. Has > >>>>>> anyone > >>>>>> come > >>>>>> across any documentation about experiences doing this (benefits, > >>>>>> drawbacks, > >>>>>> caveats)? Anyone care to share their experience? > >>>>>> > >>>>>> Joshua > >>>>>> > >>>>>> > >>>>>> This communication, including attachments, is for the exclusive > >>>>>> use > >> > >>>>>> of > >>>>> > >>>>>> addressee and may contain proprietary, confidential or privileged > >>>>>> information. If you are not the intended recipient, any use, > >>>>>> copying, > >>>>>> disclosure, dissemination or distribution is strictly prohibited. > >> If > >>>>>> you are not the intended recipient, please notify the sender > >>>>>> immediately by return email and delete this communication and > >>>>>> destroy > >>>>>> all > >>>>>> copies. > >>>>>> > >>>>>> > >>>>>> > >> -------------------------------------------------------------------- > >>>>>> - > >>>>>> To unsubscribe, e-mail: > struts-user-unsubscribe@jakarta.apache.org > >>>>>> For additional commands, e-mail: > >> struts-user-help@jakarta.apache.org > >>>>>> > >>>>>> > >> -------------------------------------------------------------------- > >>>>>> - > >>>>>> To unsubscribe, e-mail: > struts-user-unsubscribe@jakarta.apache.org > >>>>>> For additional commands, e-mail: > >> struts-user-help@jakarta.apache.org > >>>>>> > >>>>> > >>>>> > >>>>> __________________________________ > >>>>> Do you Yahoo!? > >>>>> SBC Yahoo! DSL - Now only $29.95 per month! > >>>>> http://sbc.yahoo.com > >>>>> > >>>>> > >> --------------------------------------------------------------------- > >>>>> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org > >>>>> For additional commands, e-mail: > >>>>> struts-user-help@jakarta.apache.org > >>>>> > >>>>> > >> --------------------------------------------------------------------- > >>>>> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org > >>>>> For additional commands, e-mail: > >>>>> struts-user-help@jakarta.apache.org > >>>>> > >>>> > >>>> > >>>> __________________________________ > >>>> Do you Yahoo!? > >>>> SBC Yahoo! DSL - Now only $29.95 per month! > >>>> http://sbc.yahoo.com > >>>> > >>>> > -------------------------------------------------------------------- > >>>> - > >>>> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org > >>>> For additional commands, e-mail: > struts-user-help@jakarta.apache.org > >>>> > >>>> > -------------------------------------------------------------------- > >>>> - > >>>> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org > >>>> For additional commands, e-mail: > struts-user-help@jakarta.apache.org > >>>> > >>> > >>> > >>> > --------------------------------------------------------------------- > >>> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org > >>> For additional commands, e-mail: struts-user-help@jakarta.apache.org > >>> > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org > >> For additional commands, e-mail: struts-user-help@jakarta.apache.org > >> > > > > > > __________________________________ > === message truncated === __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: struts-user-help@jakarta.apache.org