Hello Group,
Sorry to inconvenience you,  I was wondering if someone could point out
the error of my ways, at least as far as servlets and programming are
concerned.  I'm writing an app that uses frames and one of my frame's
output is generated via a servlet.  I've listed the index.html static
page for reference in case I'm calling the servlet incorrectly.  Anyway,
the index.html is thus:

"<HTML>
<HEAD>
        <TITLE>The Online Catalog</TITLE>
</HEAD>
<FRAMESET COLS="20%,*">
  <NOFRAMES><P><H3><CITE>Sorry, this page and it's contents can only be displayed on a
frames capable browser which you can get from
<A HREF="http//:www.netscape.com/">Netscape
                         Communications</A>
                   </CITE>
               </H3>
            </P>
  </NOFRAMES>
  <FRAME SRC="./contents.htm" NAME="contents">
  <FRAMESET ROWS="20%,*">
        <FRAME SRC="./intro.htm" NAME="mainpage">
        <FRAME SRC="/estore_dev_servlets/ResultsHandler" NAME="results">
   </FRAMESET>
</FRAMESET> "

**Note the <FRAME SRC="/estore_dev_servlets/ResultsHandler"
NAME="results"> line above.  That's the line that call's the servlet.
I've tried to list below the code for the ResultsHandler servlet and the
servlet it calls, HtmlSQLResult, but the list server must check all emails for code 
and bounces them.
Everything works fine except when my ResultsHandler writes the output via out.println, 
the HTML is
not interpreted by the browser, the page that gets output is simply a bunch of HTML 
text that I've
listed below.  The browser thinks the HTML tags are just text.  Any ideas?  I'm 
running Apache
1.3.9/JServ1.0.

The page output is thus:

"<HTML><HEAD></HEAD>
<BODY>
<H2>Categories:</H2>
<TABLE>
<TR><TH>category_name</TH>
</TR>
<TR><TD>Shoes</TD>
</TR>
<TR><TD>Shirts</TD>
</TR>
<TR><TD>Pants</TD>
</TR>
</TABLE></BODY></HTML> "

It's like interpreting were turned off.  I mean that's the exactly how
it comes out, HTML tags and text, if it were interpreted as a three row table I'd be 
happier than a pig in Windows.

Any thoughts.

Thanks for any ideas.

--
Alex Waltrip
[EMAIL PROTECTED]
"What we have hea is a failure to communicate"... Warden in "Cool hand Luke".

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to