stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benjamin Gomez <bgo...@roguewave.com>
Subject RE: question about serving pages from a database
Date Wed, 18 Jan 2006 17:05:07 GMT
The headers are actually produced by whatever script or program is writing
the pages to the browser.

Usually it's something like the following depending on the language:
setContentType("text/html");  //  If this line is missing, or is set to     
                              //"text/plain" Then we get the results we're
                              // seeing now.
out.println("<html>");
out.println("<body bgcolor=\"white\">");
out.println("<head>");

string title = "SessionExample";
out.println("<title>" + title + "</title>");
out.println("</head>");
out.println("<body>");

Do we have access to the actual code that serves the pages out of the DB?  

Ben


-----Original Message-----
From: Martin Sebor [mailto:sebor@roguewave.com] 
Sent: Wednesday, January 18, 2006 10:03 AM
To: stdcxx-dev@incubator.apache.org
Subject: Re: question about serving pages from a database

Benjamin Gomez wrote:
> Hi Martin,
> 
> The problem is that the headers being returned from the server include a
> content-type of text/plain instead of text/html.  IE picks up the fact
that
> it is formatted as a web page and displays as a web page, but Mozilla
> formats it as it is supposed to.

Thanks. I assume the headers are part of the files themselves,
correct? I made a change to this page and added a meta tag with
the text/html content but still no dice. Do you see anything
wrong with what I did?
http://svn.apache.org/repos/asf/incubator/stdcxx/trunk/doc/index.html

Martin

Mime
View raw message