Following are the things I have done to run Tomcat.
Installed  tomcat in C:\tomcat
set JAVA_HOME=C:\JDK1.3.

when startup.bat is run from c:\tomcat\bin, I see a new window opening.(
which I think is alright)

I have created a file hello.jsp ( not hello.html or hello.jsp.txt) and the
contents of file is

<HTML>
<H1> My First JSP </H1>
<Body>
<%="Hello World!" %>
</Body>
</HTML>

I have saved the above file c:\tomcat\webapps directory.

When I run startup.bat and type http://localhost:8080 I see a tomcat
homepage, I can even run the JSP exemples now.

But when I execute the above file,by typing http://localhost:8080/hello.jsp,
I can see the following output on screen.

<HTML>
<H1> My First JSP </H1>
<Body>
<%="Hello World!" %>
</Body>
</HTML>

In the view source, I can see the same source. I dont know what is going
wrong.

Please help. Thanks,




>What does your browser show when you view source?
>
> > -----Original Message-----
> > From: A mailing list about Java Server Pages specification and reference
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Asha Patel
> > Sent: Wednesday, August 23, 2000 6:16 PM
> > To: [EMAIL PROTECTED]
> > Subject: Tomcat ignoring my JSP tags.
> >
> >
> > Hello All,
> >   I have installed tomcat in my win98 machine. While creating my first
> > Helloworld application, like for eg as shown below, I get only
> > the text 'My
> > First JSP'. The line 'Hello World' inside the <% %> is ignored. Can
>anyone
> > please help me where I am going wrong?
> >
> >
> > <HTML>
> > <H1> My First JSP </H1>
> > <Body>
> > <%="Hello World!" %>
> > </Body>
> > </HTML>
> >
> > The above JSP file jsut displays My First JSP.
> >
> > I tried many examples but everytime the text inside <% %> is ignored.
> >
> > Thanks.
> >
> > Asha.
> >
> >
> > ________________________________________________________________________
> > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
> >
> > ==================================================================
> > =========
> > 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
> >
>
>===========================================================================
>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

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

===========================================================================
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