Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 57637 invoked from network); 22 Oct 2004 12:03:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 22 Oct 2004 12:03:35 -0000 Received: (qmail 66572 invoked by uid 500); 22 Oct 2004 12:03:20 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 66523 invoked by uid 500); 22 Oct 2004 12:03:19 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: users@cocoon.apache.org Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 66451 invoked by uid 99); 22 Oct 2004 12:03:18 -0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=DNS_FROM_RFC_ABUSE,FROM_ENDS_IN_NUMS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [206.190.39.232] (HELO web53303.mail.yahoo.com) (206.190.39.232) by apache.org (qpsmtpd/0.28) with SMTP; Fri, 22 Oct 2004 05:03:16 -0700 Message-ID: <20041022120313.10603.qmail@web53303.mail.yahoo.com> Received: from [24.218.46.227] by web53303.mail.yahoo.com via HTTP; Fri, 22 Oct 2004 05:03:13 PDT Date: Fri, 22 Oct 2004 05:03:13 -0700 (PDT) From: Paul Joseph Subject: Re: how to display html? To: users@cocoon.apache.org In-Reply-To: <4178A3BE.2090409@upaya.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Thank you for the pointer. I think I can manage to download the JXTemplateGenerator you mention... I am not clear on the DOMFragment/DomNode bit however. I can make the bean return a DomNode or DOMFragment but am not sure what it is or should look like. Any pointers on this would be helpful. The text I would like to test out is this: "Here is a link you can click on for more information: http://www.yahoo.com" What would this have to look like to be treated as a DomNode? thx Paul --- Upayavira wrote: > Wild guess here (never done it myself): > > Could your editBean.note_with_href return a > DOMFragment or DomNode? I > think the latest Cocoon in SVN might have code to > handle this properly > in JXTemplate. > > Regards, Upayavira > > Paul Joseph wrote: > > >Hi, > > > >i have a requirement that the user should be able > to > >enter a href in a text area ex: > > >href="http://www.yahoo.com">http://www.yahoo.com > > > >Then in a different form, that is read only, this > href > >should display as a link that can be clicked on. > > > >I tried to do this using the following: > > > > > > > >${editBean.note_with_href} > > > > > > > > but what I get in the resulting table cell is the > >same thing i.e. > > > > >href="http://www.yahoo.com">http://www.yahoo.com > > > >i.e. the "<" and ">" have been escape to be < > and > >>. A bean.toString() method indicates that the > >values in the bean are unescaped. The values in > the > >database also appear to be unescaped. > > > >Who is doing the escaping and how can I prevent it > >from happening so that I see a clikcable link? > > > >My sitemap is pretty basic - as follows: > > > > > > src="display_template.xml"/> > > > > > > > >thanks! > >Paul > > > > > > > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: > users-unsubscribe@cocoon.apache.org > >For additional commands, e-mail: > users-help@cocoon.apache.org > > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > users-unsubscribe@cocoon.apache.org > For additional commands, e-mail: > users-help@cocoon.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org