> ><%
> >{ // open brace needed to shadow the existing out stream
> >StringWriter out = new SringWriter();
> >%>

After looking at the API for StringWriter, I realized that you'll need a little more 
than this to get println() and friends:

<%
{ // open brace needed to shadow the existing out stream
StringWriter sw = new SringWriter();
PrintWriter out = new PrintWriter(sw); // now we have println(), et. al.
%>


> >All output will now go into this StringWriter.  When you're ready to flush:
> >
> ><%
> >response.getPrintWriter().println(out.getBuffer().toString()));
> >} // close brace needed to restore former output stream
> >%>

Changing out to sw should work at flush time:

<%
response.getPrintWriter().println(sw.getBuffer().toString()));
} // close brace needed to restore former output stream
%>

cc

begin:vcard
n:Cobb;Christopher
tel;cell:703-909-7550
tel;fax:703-648-7475
tel;work:703-648-6725
x-mozilla-html:TRUE
org:Powerhouse Technologies, Inc.
adr:;;;;;;
version:2.1
email;internet:[EMAIL PROTECTED]
title:SW Architect
fn:Christopher Cobb
end:vcard

Reply via email to