Thread:   html code in PostgreSQL table

  html code in PostgreSQL table

From
Jim Borland
Date:
I need to insert a non-breaking space into an html table cell for it to
display correctly.  If the cell is empty it looks different from all the
other cells.  Things work fine if the final html code for the cell looks
like this:
<td> </td>

I populate the html table with data from a PostgreSQL database.  If I store
' ' as text in the PostgreSQL table's column, it gets printed as literal
text in the html table instead of being recognized as an html code.  How can
I store a value in PostgreSQL and have it recognized as an html code when it
gets read and inserted into a web page?

I'm using Tomcat and JSP pages.  The PostgreSQL data is inserted into a Java
Bean and utilized in the JSP page using a <c:out> JSTL tag.



-- 
View this message in context: http://old.nabble.com/-nbsp-html-code-in-PostgreSQL-table-tp26799134p26799134.html
Sent from the PostgreSQL - www mailing list archive at Nabble.com.



Re:   html code in PostgreSQL table

From
"Joshua D. Drake"
Date:
On Tue, 2009-12-15 at 10:09 -0800, Jim Borland wrote:
> I need to insert a non-breaking space into an html table cell for it to
> display correctly.  If the cell is empty it looks different from all the
> other cells.  Things work fine if the final html code for the cell looks
> like this:
> <td> </td>
>
> I populate the html table with data from a PostgreSQL database.  If I store
> ' ' as text in the PostgreSQL table's column, it gets printed as literal
> text in the html table instead of being recognized as an html code.  How can
> I store a value in PostgreSQL and have it recognized as an html code when it
> gets read and inserted into a web page?
>
> I'm using Tomcat and JSP pages.  The PostgreSQL data is inserted into a Java
> Bean and utilized in the JSP page using a <c:out> JSTL tag.

the ; is required. E.g;   is just text,   isn't. Simple html
test:

<title>bar</title>
I am a space <br />
I am a space

But this is the wrong list :)

Sincerely,

Joshua D. Drake



>
>
>
> --
> View this message in context: http://old.nabble.com/-nbsp-html-code-in-PostgreSQL-table-tp26799134p26799134.html
> Sent from the PostgreSQL - www mailing list archive at Nabble.com.
>
>


--
PostgreSQL.org Major Contributor
Command Prompt, Inc: http://www.commandprompt.com/ - 503.667.4564
Consulting, Training, Support, Custom Development, Engineering
If the world pushes look it in the eye and GRR. Then push back harder. - Salamander

Re:   html code in PostgreSQL table

From
"Joshua D. Drake"
Date:
On Tue, 2009-12-15 at 10:09 -0800, Jim Borland wrote:
> I need to insert a non-breaking space into an html table cell for it to
> display correctly.  If the cell is empty it looks different from all the
> other cells.  Things work fine if the final html code for the cell looks
> like this:
> <td> </td>
> 
> I populate the html table with data from a PostgreSQL database.  If I store
> ' ' as text in the PostgreSQL table's column, it gets printed as literal
> text in the html table instead of being recognized as an html code.  How can
> I store a value in PostgreSQL and have it recognized as an html code when it
> gets read and inserted into a web page?
> 
> I'm using Tomcat and JSP pages.  The PostgreSQL data is inserted into a Java
> Bean and utilized in the JSP page using a <c:out> JSTL tag.

the ; is required. E.g;   is just text,   isn't. Simple html
test:

<title>bar</title>
I am a space <br /> 
I am a space

But this is the wrong list :)

Sincerely,

Joshua D. Drake



> 
> 
> 
> -- 
> View this message in context: http://old.nabble.com/-nbsp-html-code-in-PostgreSQL-table-tp26799134p26799134.html
> Sent from the PostgreSQL - www mailing list archive at Nabble.com.
> 
> 


-- 
PostgreSQL.org Major Contributor
Command Prompt, Inc: http://www.commandprompt.com/ - 503.667.4564
Consulting, Training, Support, Custom Development, Engineering
If the world pushes look it in the eye and GRR. Then push back harder. - Salamander