Thanks for the response, but I don't know if it answers the question. Let me

expount a bit and I'll see if it makes things clearer.

I'm using mod_jk to talk to tomcat. By default tomcat's on 8080. When I
telnet to port 8080, 
the headers report that content-type is text/html. But, when I telnet to
port 80, (i.e. mod_jk is making
a connection to tomcat to pass back the html, the content-type is shown as
text/plain. 
Is there something I can do to solve this?

-- 
Austin Gonyou
Systems Architect, CCNA
Coremetrics, Inc.
Phone: 512-796-9023
email: [EMAIL PROTECTED] 

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 21, 2001 2:17 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Using mod_jk with apache 1.3.20
> 
> 
> Use this:
>   
> //--------------------------------------------------------------------
>   response.setContentType( "text/html" );
>   PrintWriter pw = response.getWriter( );
> 
>   pw.writeln( "<html>" );
>   pw.writeln( "<title>MOD_JK Test</title>" );
>   pw.writeln( "<h1>Here�s my HTML.</h1>" );
>   pw.writeln( "<br>" );
>   pw.writeln( "<body>" );
>   pw.writeln( "</body>" );
>   pw.writeln( "</html>" );
>   
>   pw.flush( );
>   pw.close( );
>   
> //--------------------------------------------------------------------
> 
>   I hope this helps!
> 
>   With best wishes,
>   Edson Alves Pereira
>   Brazil
> 
> "Gonyou, Austin" <[EMAIL PROTECTED]> wrote:
> 
> >I keep getting content-type: text/plain when stuff comes back through
> >mod_jk. How can I change this?
> >If I view a page with mozilla, I get nothing but 
> non-rendered source. 
> >
> >-- 
> >Austin Gonyou
> >Systems Architect, CCNA
> >Coremetrics, Inc.
> >Phone: 512-796-9023
> >email: [EMAIL PROTECTED] 
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> -- 
> ////////////////////////////////////////
> Well done is better than well said 
> ////////////////////////////////////////
> 
> 
> 
> __________________________________________________________________
> Your favorite stores, helpful shopping tools and great gift 
> ideas. Experience the convenience of buying online with 
> Shop@Netscape! http://shopnow.netscape.com/
> 
> Get your own FREE, personal Netscape Mail account today at 
http://webmail.netscape.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to