RE: Is there a better way to write this code?

2002-01-18 Thread Tom Klaasen (TeleRelay)
If you want logic and valid xml docs, have a look at xsp (implemented in Cocoon et al.) tomK > -Original Message- > From: c tang [mailto:[EMAIL PROTECTED]] > Sent: vrijdag 18 januari 2002 14:46 > To: Struts Users Mailing List > Subject: Re: Is there a better way to

Re: Is there a better way to write this code?

2002-01-18 Thread c tang
One simple reason for not using scriptlet is that making a jsp page an invalid xml doc. ct --- Arron Bates <[EMAIL PROTECTED]> wrote: > c tang wrote: > > >You are right this thing is very powerful. But > that > >should not be the reason to not doing it. I can > >always do the MyBean.wait() in

Re: Is there a better way to write this code?

2002-01-17 Thread Mark Galbreath
st" <[EMAIL PROTECTED]> Sent: Thursday, January 17, 2002 6:06 PM Subject: Re: Is there a better way to write this code? > c tang wrote: > > >You are right this thing is very powerful. But that > >should not be the reason to not doing it. I can > >always do the

Re: Is there a better way to write this code?

2002-01-17 Thread Arron Bates
c tang wrote: >You are right this thing is very powerful. But that >should not be the reason to not doing it. I can >always do the MyBean.wait() in scriptlet. There is >nothing to stop that. > >Power to the developers! > So why complain about not being able to do something and just do it in

Re: Is there a better way to write this code?

2002-01-17 Thread João Guilherme Del Valle
AIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, January 17, 2002 3:03 PM Subject: Re: Is there a better way to write this code? > I like struts as a 'practical' tool for business development. > I haven't had a problem w

Re: Is there a better way to write this code?

2002-01-17 Thread Fernando Esteban Barril Otero
. If you want other, you should create a tag for it. Fernando - Original Message - From: "c tang" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, January 17, 2002 1:05 PM Subject: Re: Is there a better way to write th

Re: Is there a better way to write this code?

2002-01-17 Thread Keith Bacon
I like struts as a 'practical' tool for business development. I haven't had a problem with it being restrictive in (fairly limited) practice. I hope that struts guides you towards best practise & standard techniques. On wrappers - I normally wrap collections anyway to apply restrictions & to add

Re: Is there a better way to write this code?

2002-01-17 Thread c tang
; To: "Struts Users Mailing List" > <[EMAIL PROTECTED]> > Sent: Thursday, January 17, 2002 10:41 AM > Subject: Re: Is there a better way to write this > code? > > > > Creating a wrapper class may get rid of scriptlet > in > > JSP. But that means for ev

Re: Is there a better way to write this code?

2002-01-17 Thread c tang
You are right this thing is very powerful. But that should not be the reason to not doing it. I can always do the MyBean.wait() in scriptlet. There is nothing to stop that. Power to the developers! ct --- Arron <[EMAIL PROTECTED]> wrote: > I can see what you're trying to say and it would b

Re: Is there a better way to write this code?

2002-01-17 Thread Arron
I can see what you're trying to say and it would be truly flexible if you could do that. But I can already foresee the reaction from the die-hards, and that is that it would give the person doing the markup "too" much power. Probably get at some things that shouldn't be gotten at, like MyBean.

Re: Is there a better way to write this code?

2002-01-17 Thread Fernando Esteban Barril Otero
his may help to avoid scriptlet in the JSP in some cases. Fernando - Original Message - From: "c tang" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, January 17, 2002 10:41 AM Subject: Re: Is there a better way to write

Re: Is there a better way to write this code?

2002-01-17 Thread c tang
Creating a wrapper class may get rid of scriptlet in JSP. But that means for every public api (such as Collection.size(), Object.toString()) that does not fit get/set pattern, a wrapper class has to be created in order to avoid scriptlet using struts. IMHO, that is worse than just using scriptlet

RE: Is there a better way to write this code?

2002-01-16 Thread Alex Paransky
Subject: Re: Is there a better way to write this code? You have three options on starting the nested tags. nested:form - extends html:form html:form - naturally nested:root - this is the "formless" option for starting off. It requires only a "name" attribute which has to matc

Re: Is there a better way to write this code?

2002-01-16 Thread Arron Bates
nce to dig into the source code >yet. > >Thanks. >-AP_ > >-Original Message- >From: Arron Bates [mailto:[EMAIL PROTECTED]] >Sent: Tuesday, January 15, 2002 10:30 PM >To: Struts Users Mailing List >Subject: Re: Is there a better way to write this code? > >

Re: Is there a better way to write this code?

2002-01-16 Thread Arron Bates
A getter method like... public int getMyListSize() { return this.myList.getSize(); } with a tag like... ...maybe? Arron. c tang wrote: >I agree with Alex that current strut taglib has a big >deficiency. It allows only access through get/set >methods of a property. How do I write the size

RE: Is there a better way to write this code?

2002-01-16 Thread Alex Paransky
e code yet. Thanks. -AP_ -Original Message- From: Arron Bates [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 15, 2002 10:30 PM To: Struts Users Mailing List Subject: Re: Is there a better way to write this code? For one, I recommend getting your properties into getter/setter methodology.

Re: Is there a better way to write this code?

2002-01-16 Thread c tang
I agree with Alex that current strut taglib has a big deficiency. It allows only access through get/set methods of a property. How do I write the size of collection object to a page without resorting scriptlet or <%=? How do I write toString() output to a page without resorting scriptlet or <%=

Re: Is there a better way to write this code?

2002-01-15 Thread Arron Bates
For one, I recommend getting your properties into getter/setter methodology. Simply so you can use the wealth that is the Struts tagging system (as it's (the bean spec Struts runs against for it's model components) kind of what it's all about). By "'raw' String" do you mean the object's "toStr