On Fri, 25 Oct 2002, Inge Solvoll wrote:
>
> I agree with you on most of this. I can clearly see that it is hard to draw
> the line when to stop filtering in the bean:write tag and other tags and
> leave this to other taglibs.
>
> The current filter functionality that escapes html is also basica
I can see that there are some very good points for not including html
encoding of newline characters in the bean:write tag. I also think there
are one or two good points for the opposite. Anyway, I've modified my
solution a bit, so now it can be applied as a patch to the bean:write and
nested:w
10/25/2002 2:48:49 AM, Inge Solvoll <[EMAIL PROTECTED]> wrote:
>The current filter functionality that escapes html is also
basically
>functionality that could have been done by some tag in JSTL.
But for
>functionality that is very common, I think it is reasonable to
focus on
>convenience rat
I agree with you on most of this. I can clearly see that it is hard to draw
the line when to stop filtering in the bean:write tag and other tags and
leave this to other taglibs.
The current filter functionality that escapes html is also basically
functionality that could have been done by some
I sort of take the philosophy of "wrapping" (or perhaps "shielding") my
applications from the underlying framework I'm using in order to allow
later customizations or tweaks. For example, its pretty much a Struts
best practice to subclass your own BaseForm and BaseAction (these are
the names I
IMHO, once we opened the door past the filter
attribute, people would suggest that we start
adding this or that to the bean write tag as well.
I would say that any transformations beyond the
escape filter really belong on some other tag.
IMHO, a better place for a tag like this is
Taglibs.
.
Craig
On Thu, 24 Oct 2002, Inge Solvoll wrote:
> Date: Thu, 24 Oct 2002 11:12:19 +0200
> From: Inge Solvoll <[EMAIL PROTECTED]>
> Reply-To: Struts Developers List <[EMAIL PROTECTED]>
> To: Struts Developers List <[EMAIL PROTECTED]>
> Subject: Re: HTML formatting of n
: Struts Developers List
Subject: Re: HTML formatting of newline characters with bean:write tag
+0 on adding an attribute to control this (patches welcome).
-1 on making the default to insert s, because this would break
backwards compatibility. Our practice in Struts, whenever something
I actually didn't think of creating a tag that can be wrapped around the
bean:write tag, that's obviously the best solution for me. I'll check if
there is something like that in Jakarta taglib. I believe someone here
mentioned a 'replace' tag.
But, for me this is still an interesting question.
newline characters with bean:write tag
On Thu, 24 Oct 2002, Arron Bates wrote:
> Date: Thu, 24 Oct 2002 02:20:12 +1000
> From: Arron Bates <[EMAIL PROTECTED]>
> Reply-To: Struts Developers List <[EMAIL PROTECTED]>
> To: Struts Developers List <[EMAIL PROTECTED]>
>
Yeah - I don't think Struts should be responsible for this either. As I
said - check out Jakarta Taglibs. There is discussion of implementing
this behavior in the string taglib I think.
edgar wrote:
Wouldn't the solution be, rather than rewriting the bean:write tag, be
for *someone* to write
Hi,
The tag "replace" in the "string" jakarta taglibs can do this
look at:
http://jakarta.apache.org/taglibs/doc/string-doc/index.html#replace
I used it in a project, was something like:
Salut,
-- Antoni Reus
A Dimecres 23 Octubre 2002 19:50, Eddie Bush va escriure:
> Let me correct mys
clean deliniation between struts and user code.
Edgar
-Original Message-
From: Craig R. McClanahan [mailto:craigmcc@;apache.org]
Sent: Wednesday, October 23, 2002 12:14 PM
To: Struts Developers List
Subject: Re: HTML formatting of newline characters with bean:write tag
On Thu, 24 Oct
Let me correct myself. It does not appear there is such an animal in
taglibs at this point in time. There was someone wanting c:out to
provide this behavior, and the response was that the string taglib may
provide this functionality in the future. You may wish to join
taglibs-user or taglibs
Craig R. McClanahan wrote:
On Thu, 24 Oct 2002, Arron Bates wrote:
Date: Thu, 24 Oct 2002 02:20:12 +1000
From: Arron Bates <[EMAIL PROTECTED]>
Reply-To: Struts Developers List <[EMAIL PROTECTED]>
To: Struts Developers List <[EMAIL PROTECTED]>
Subject: Re: HTML for
On Thu, 24 Oct 2002, Arron Bates wrote:
> Date: Thu, 24 Oct 2002 02:20:12 +1000
> From: Arron Bates <[EMAIL PROTECTED]>
> Reply-To: Struts Developers List <[EMAIL PROTECTED]>
> To: Struts Developers List <[EMAIL PROTECTED]>
> Subject: Re: HTML formatting of n
There are already taglibs that do this transformation, aren't there?
Doesn't the taglibs project have things that address this? Is there a
way to do this using the JSTL (Martin?)?
David Graham wrote:
If this is a common problem, maybe we could add a method to Action
like breakNewLines(String)
To: "Struts Developers List" <[EMAIL PROTECTED]>
To: Struts Developers List <[EMAIL PROTECTED]>
Subject: Re: HTML formatting of newline characters with bean:write tag
Date: Thu, 24 Oct 2002 02:20:12 +1000
Craig R. McClanahan wrote:
Can't you just embed your tag inside a element
Or redisplay in a textarea?
-Original Message-
From: Arron Bates [mailto:struts-dev@;keyboardmonkey.com]
Sent: 23 October 2002 17:20
To: Struts Developers List
Subject: Re: HTML formatting of newline characters with bean:write tag
Craig R. McClanahan wrote:
>Can't you just em
Craig R. McClanahan wrote:
Can't you just embed your tag inside a element and get
the same effect?
Craig
pre opens a can of worms if the designers/managers are picky. For one,
it roots the browsers ability to word wrap. Use a regex in your action
code or some funky tag and replace them wit
Can't you just embed your tag inside a element and get
the same effect?
Craig
On Wed, 23 Oct 2002, Inge Solvoll wrote:
> Date: Wed, 23 Oct 2002 14:25:48 +0200
> From: Inge Solvoll <[EMAIL PROTECTED]>
> Reply-To: Struts Developers List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: HTM
21 matches
Mail list logo