Re: HTML formatting of newline characters with bean:write tag

2002-10-25 Thread Craig R. McClanahan
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

Re: HTML formatting of newline characters with bean:write tag

2002-10-25 Thread Inge Solvoll
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

Re: HTML formatting of newline characters with bean:write tag

2002-10-25 Thread Ted Husted
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

Re: HTML formatting of newline characters with bean:write tag

2002-10-24 Thread Inge Solvoll
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

Re: HTML formatting of newline characters with bean:write tag

2002-10-24 Thread Erik Hatcher
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

Re: HTML formatting of newline characters with bean:write tag

2002-10-24 Thread Ted Husted
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.

Re: HTML formatting of newline characters with bean:write tag

2002-10-24 Thread Craig R. McClanahan
. 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

RE: HTML formatting of newline characters with bean:write tag

2002-10-24 Thread Chanoch
: 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

Re: HTML formatting of newline characters with bean:write tag

2002-10-24 Thread Inge Solvoll
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.

RE: HTML formatting of newline characters with bean:write tag

2002-10-23 Thread Clovis Yutaka Harada
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]> >

Re: HTML formatting of newline characters with bean:write tag

2002-10-23 Thread Eddie Bush
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

Re: HTML formatting of newline characters with bean:write tag

2002-10-23 Thread Antoni Reus
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

RE: HTML formatting of newline characters with bean:write tag

2002-10-23 Thread edgar
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

Re: HTML formatting of newline characters with bean:write tag

2002-10-23 Thread Eddie Bush
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

Re: HTML formatting of newline characters with bean:write tag

2002-10-23 Thread Arron Bates
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

Re: HTML formatting of newline characters with bean:write tag

2002-10-23 Thread Craig R. McClanahan
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

Re: HTML formatting of newline characters with bean:write tag

2002-10-23 Thread Eddie Bush
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)

Re: HTML formatting of newline characters with bean:write tag

2002-10-23 Thread David Graham
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

RE: HTML formatting of newline characters with bean:write tag

2002-10-23 Thread Geddes, Mark (ANTS)
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

Re: HTML formatting of newline characters with bean:write tag

2002-10-23 Thread Arron Bates
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

Re: HTML formatting of newline characters with bean:write tag

2002-10-23 Thread Craig R. McClanahan
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