Re: Html output

From: Antti Haapala <haapala(at)mail(dot)student(dot)oulu(dot)fi>
To: "Molenda, Mark P" <mark(dot)molenda(at)eds(dot)com>
Cc: "Pgsql-Novice (pgsql-novice(at)postgresql(dot)org)" <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Html output
Date: 2003-02-06 16:51:58
Message-ID: Pine.GSO.4.44.0302061841280.24627-100000@paju.oulu.fi
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice


On Thu, 6 Feb 2003, Molenda, Mark P wrote:
> I know when you use psql you can set the output of a query to html with a
> "\H". Is there a way in Java's JDBC to instruct postgres to return it's
> results in this format? If not, can I set postgres up to use html as it's
> default response to queries? If I can get this to work all I need to do
> inside my program is send the result to the PrintWriter and display the
> result.

The HTML rendering is provided by C client library, which psql also uses.
There's no way of forcing the backend to send query results in HTML. I'm
not familiar with JDBC though. It may offer such a functionality.

--
Antti Haapala

In response to

  • Html output at 2003-02-06 16:30:18 from Molenda, Mark P

Browse pgsql-novice by date

  From Date Subject
Next Message Steve_Miller 2003-02-06 16:52:10 Re: Favorite Linux Editor for PostgreSQL Scripts?/keyboards
Previous Message Antti Haapala 2003-02-06 16:41:17 Re: Html output