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
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
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
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
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
. 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
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
; 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
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
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.
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
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
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
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?
>
>
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
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.
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 <%=
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
18 matches
Mail list logo