From pete.black@metering.co.nz Thu Feb 1 01:02:12 2001 Return-Path: Mailing-List: contact struts-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list struts-user@jakarta.apache.org Received: (qmail 84606 invoked from network); 1 Feb 2001 01:02:12 -0000 Received: from mta1-rme.xtra.co.nz (203.96.92.1) by h31.sny.collab.net with SMTP; 1 Feb 2001 01:02:12 -0000 Received: from server1.metering.co.nz ([210.55.57.194]) by mta1-rme.xtra.co.nz with ESMTP id <20010201010153.OEWZ14147057.mta1-rme.xtra.co.nz@server1.metering.co.nz> for ; Thu, 1 Feb 2001 14:01:53 +1300 Received: by server1.metering.co.nz with Internet Mail Service (5.5.2650.21) id ; Thu, 1 Feb 2001 14:01:49 +1300 Message-ID: <8BEF9F7FD6FEA8409D2A706B2D6D3228055451@server1.metering.co.nz> From: Pete Black To: "'struts-user@jakarta.apache.org'" Subject: RE: logic:greaterEqual tag (also logic:iterate with Arrays thread ) Date: Thu, 1 Feb 2001 14:01:48 +1300 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Yep, you're right.. i'm still getting my head around the tools Struts provides. Thanks for your help -Pete > -----Original Message----- > From: Craig R. McClanahan [SMTP:Craig.McClanahan@eng.sun.com] > Sent: Thursday, February 01, 2001 1:32 PM > To: struts-user@jakarta.apache.org > Subject: Re: logic:greaterEqual tag (also logic:iterate with Arrays > thread) > > Pete Black wrote: > > > Does anybody know whether this will be the preferred method of accessing > > bean methods using logic tags in Struts? > > > > It seems a little confusing that you have to know the names of the bean > you > > are using when you use logic:xxx tags, but not with html:xxx tags. > > > > If it counts for anything, my vote would be to keep the default case in > all > > the tags consistent - when there is no name parameter defined, the > property > > tag refers to the bean bound to the current action in struts-config.xml. > It > > makes things clean and magical like they should be. > > > > Is the current behaviour set in stone for version 1? > > > > Consider a case where the Struts example application uses a conditional > tag > outside the scope of an tag -- the check for which type of > transaction is being performed at the top of "registration.jsp" in several > places, including when creating the element: > > <logic:equal name="registrationForm" property="action" > scope="request" value="Create"> > <title><bean:message key="registration.title.create"/> > > > If the name attribute were not entered here, I don't see how the tag could > know > what bean you are referring to. > > It would be feasible to make an assumption that, if you're inside a form, > then > you must be talking about the form bean -- although that risks confusion > as > well because the tag would behave quite differently depending on where it > was > placed. > > > > > Thanks > > > > -Pete > > > > Craig McClanahan >