I have checked my Servel.XML and it has got the following as context
path. Does this setting needs to be changed?

<Context path="/examples" docBase="webapps/examples" debug="0"
reloadable="true" >
        </Context>
<!-- example - how to override AutoSetup actions -->
<Context path="" docBase="webapps/ROOT" debug="0" reloadable="true" >
        </Context>

<Context path="/test" docBase="webapps/test" debug="0" reloadable="true" >
        </Context>

Yesterday When I was running tomcat by typing
http://localhost:8080/hello.jsp it was showing me the source code in browser
window and today again started showing the HTML output ignoring the JSP
tags. In the both the case it is still not working as expected. Does someone
have the idea why?

Also do I need to set TOMCAT_HOME explicitly?

Thanks....


>From: Agarwal Gokul <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
>     reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: Tomcat ignoring my JSP tags.
>Date: Thu, 24 Aug 2000 19:31:12 +0530
>
>Go and edit U'r server.xml file in the tomcat directory to set U'r context
>path !!!!
>Good Luck !!!
>
> > -----Original Message-----
> > From: Asha Patel [SMTP:[EMAIL PROTECTED]]
> > Sent: Thursday, August 24, 2000 5:01 PM
> > To:   [EMAIL PROTECTED]
> > Subject:      Re: Tomcat ignoring my JSP tags.
> >
> > 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
> >
>****************************************************************************
>This electronic communication and any accompanying document is being
>transmitted over the Indian Oil Network and contains confidential
>information that is for the exclusive use of the individual or entity to
>which it is addressed and is protected against unauthorised disclosure. If
>the reader of this message is not the intended receipient or the employee
>or
>agent responsible to deliver to the intended receipient, or is not intended
>to act on it, be aware that any disclosure, dissemination, distribution or
>copying of this communication, or the use of its contents is prohibited and
>is likely to be attended by legal consequences. If you have received this
>communication in error and/or are not the intended receipient, please
>immediately notify the undersigned or Indian Oil Corporation Ltd. at the
>telephone or the fax number or email address given above and permanently
>delete the original message from your email system.
>****************************************************************************
>
>===========================================================================
>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