|
RE: How to use markup builder as a big string: msg#00140lang.groovy.user
Thanks. -----Original Message----- From: Guillaume Laforge [mailto:glaforge-yCVjj/EcxBJg9hUCZPvPmw@xxxxxxxxxxxxxxxx] Sent: Sunday, November 21, 2004 1:51 PM To: user-i9PBDF1N6cxnkHa44VUL00B+6BGkLq7r@xxxxxxxxxxxxxxxx Subject: Re: [groovy-user] How to use markup builder as a big string Hello Gary, You can pass a StringWriter in the MarkupBuilder constructor. That way, you'll be able to get the big string back for your own use. -- Guillaume Laforge http://glaforge.free.fr/weblog Furash Gary wrote: > I've used MarkupBuilder to make an HTML document: > > htmlOut = new MarkupBuilder(); > htmlOut.html() { > ... > } > > Now I want to use htmlOut as a big old string, e.g.: > > x.method(htmlOut); > > where the method requires a string. > > I'm missing something obvious here! > > Gary
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: What's wrong with this syntax = markupBuilder + SQL --> Closure, Furash Gary |
|---|---|
| Next by Date: | Test, Cleverton Hentz |
| Previous by Thread: | Re: How to use markup builder as a big string, Guillaume Laforge |
| Next by Thread: | Compiling, Bill Odefey |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |