Prem:

I have the files in the folder as you said and also the path is this:
 http://localhost:8080/myapp/index.html
http://localhost:8080/myapp/xxx.jsp

Still I am getting JSP page not found error.

Also, I note that the JSP is being searched in http://localhost:8080/xxx.jsp

Is there any mistake in the server.xml, then?

Thanks

/KK
----- Original Message -----
From: "Kam Premkumar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 20, 2001 6:32 PM
Subject: Re: TomCat Classpath


> 1. Make sure your have diretory named myapp under webapps
> 2. Make sure you have the following  entry in server.xml
>    <Context path="/myapp" docBase="myapp" debug="0" reloadable="true">
> 3. copy the index.html and your jsp under myapp
>
> 4. try http://localhost:8080/myapp/index.html and your jsp link shoulb
> be like this http://localhost:8080/myapp/xxx.jsp
>
> Thanks
> Prem
>
>
>
>
> [EMAIL PROTECTED] wrote:
>
> > Prem:
> >
> >
> >
> > Here is what you asked for.
> >
> >
> >
> > Hope you can shed some light on it.
> >
> >
> >
> > Thanks, once again.
> >
> >
> >
> > /KK
> >
> >
> >
> > The HTML:
> >
> > ------------------------------------------------------------------------
> >
> > <FORM method="POST" action="http://localhost:8080/Mypage.jsp";>
> >
> > <P>      <INPUT id=text1 style="LEFT: 78px;
> > TOP: 55px" name=username></P>
> >
> > <P> </P>
> >
> > <P><INPUT id=password1 type=password name=password></P>
> >
> > <P><INPUT id=submit1 type=submit value=Submit name=submit1> <INPUT
> > id=reset1 type=reset value=Reset name=reset1></P>
> >
> > </FORM>
> >
> > ------------------------------------------------------------------------
> >
> > The JSP:
> >
> > <HTML>
> > <HEAD>
> >
> > <TITLE>JSP 1</TITLE>
> > </HEAD>
> > <BODY>
> > <%@ page language="Java" %>
> > <jsp:usebean id="abc" scope="page" class="xyz" />
> > <jsp setProperty name="abc" property="*" />
> > <%! int c=0; %>
> >
> > <%=request.getParameter("username")%>
> > <%=request.getParameter("password")%>
> >
> > <%
> >
> > c = abc.returnX();
> > out.write(c);
> > %>
> > <P> </P>
> >
> > </BODY>
> > </HTML>
> > ------------------------------------------------------------------------
> >
> > ----- Original Message -----
> > From: "Kam Premkumar" <[EMAIL PROTECTED]
> > <mailto:[EMAIL PROTECTED]>>
> >
> > To: <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>
> >
> > Sent: Tuesday, November 20, 2001 6:18 PM
> >
> > Subject: Re: TomCat Classpath
> >
> >
> >  > send your index.html and jsp please. if you set your form
method=post. I
> >  > think it will work
> >  >
> >  > Thanks
> >  > Prem
> >  >
> >  > [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> wrote:
> >  >
> >  > > Idont see any problem here. Check your METHOD=POST
> >  > >
> >  > > [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> wrote:
> >  > >
> >  > >> Prem:
> >  > >>
> >  > >> The problem is this:
> >  > >>
> >  > >> I have index.htnl. this page is subkmitted to a JSP page. The
> > problem is
> >  > >> TOMCAT says that this JSP page is not found. So, I am kind of
looking
> >  > >> at the
> >  > >> JSP folder etc.
> >  > >>
> >  > >> Any suggestions?
> >  > >>
> >  > >> Thanks once again.
> >  > >>
> >  > >> /KK
> >  > >>
> >  > >>
> >  > >> ----- Original Message -----
> >  > >> From: "Kam Premkumar" <[EMAIL PROTECTED]
> > <mailto:[EMAIL PROTECTED]>>
> >  > >> To: <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>
> >  > >> Sent: Tuesday, November 20, 2001 6:00 PM
> >  > >> Subject: Re: TomCat Classpath
> >  > >>
> >  > >>
> >  > >>
> >  > >>> you can create jsp directory and keep the jsps. But whats the
problem
> >  > >>> you are facing now. !! Are u getting any error while accessing
> > jsps. Try
> >  > >>> to start your tomcat like this
> >  > >>>
> >  > >>> go to tomcat_home/bin/
> >  > >>> and catalina run
> >  > >>>
> >  > >>> Hope fully you set the CATALINA_HOME=c:\tomcat40 something like
> > in your
> >  > >>> env variables.
> >  > >>>
> >  > >>> Thanks
> >  > >>> Prem
> >  > >>>
> >  > >>>
> >  > >>> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> wrote:
> >  > >>>
> >  > >>>
> >  > >>>> Prem:
> >  > >>>>
> >  > >>>> I tried the directory structure you mentioned. I get the
index.html
> >  > >>>>
> >  > >> page.
> >  > >>
> >  > >>>> The next page is an JSP, which I am not getting.
> >  > >>>>
> >  > >>>> I have made changes in the server.xml also. Should I create a
JSP
> >  > >>>> folder
> >  > >>>>
> >  > >> in
> >  > >>
> >  > >>>> webapps/myapp???
> >  > >>>>
> >  > >>>> Thanks.
> >  > >>>>
> >  > >>>> /KK
> >  > >>>> ----- Original Message -----
> >  > >>>> From: "Kam Premkumar" <[EMAIL PROTECTED]
> > <mailto:[EMAIL PROTECTED]>>
> >  > >>>> To: <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>>
> >  > >>>> Sent: Tuesday, November 20, 2001 4:37 PM
> >  > >>>> Subject: Re: TomCat Classpath
> >  > >>>>
> >  > >>>>
> >  > >>>>
> >  > >>>>
> >  > >>>>> Create your own App directory structure under webapps
> >  > >>>>>
> >  > >>>>> For example:
> >  > >>>>>
> >  > >>>>> webapps/myapp
> >  > >>>>> webapps/myapp/WEB-INF
> >  > >>>>> webapps/myapp/WEB-INF/classes
> >  > >>>>> webapps/myapp/WEB-INF/lib
> >  > >>>>>
> >  > >>>>> put your web.xml in WEB-INF
> >  > >>>>> put your class file in classes dir
> >  > >>>>> put your third party jars in lib ( eg jdbc driver)
> >  > >>>>> put your servlets,jsp in myapp
> >  > >>>>>
> >  > >>>>> and a entry in server.xml like this
> >  > >>>>> <Context path="/myapp" docBase="myapp" debug="0"
> >  > >>>>>
> >  > >> reloadable="true">
> >  > >>
> >  > >>>>> Thanks
> >  > >>>>> Prem
> >  > >>>>>
> >  > >>>>>
> >  > >>>>>
> >  > >>>>>
> >  > >>>>>
> >  > >>>>>
> >  > >>>>>
> >  > >>>>>
> >  > >>>>>
> >  > >>>>>
> >  > >>>>>
> >  > >>>>> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> wrote:
> >  > >>>>>
> >  > >>>>>
> >  > >>>>>
> >  > >>>>>> Hello,
> >  > >>>>>>
> >  > >>>>>>
> >  > >>>>>>
> >  > >>>>>> I am using Apache TomCat 4.01. I am doing some test code.
> >  > >>>>>>
> >  > >>>>>>
> >  > >>>>>>
> >  > >>>>>> I want to know:
> >  > >>>>>>
> >  > >>>>>>
> >  > >>>>>>
> >  > >>>>>> 1. Where I need to put my class files for my web applicaiotn.
> > I see
> >  > >>>>>>
> >  > >> many
> >  > >>
> >  > >>>>>> class folders in the install directory.
> >  > >>>>>>
> >  > >>>>>> 2. Also, please specify the changes I need to make in the
> > class path.
> >  > >>>>>>
> >  > >>>>>>
> >  > >>>>>>
> >  > >>>>>> I appraciate your help, in advance.
> >  > >>>>>>
> >  > >>>>>>
> >  > >>>>>>
> >  > >>>>>>
> >  > >>>>>>
> >  > >>>>>> /KK
> >  > >>>>>>
> >  > >>>>>>
> >  > >>>>>>
> >  > >>
> >
===========================================================================
> >  > >>
> >  > >>
> >  > >>>>> To unsubscribe: mailto [EMAIL PROTECTED]
> > <mailto:[EMAIL PROTECTED]> with body: "signoff
> >  > >>>>>
> >  > >>>>>
> >  > >>>> JSP-INTEREST".
> >  > >>>>
> >  > >>>>
> >  > >>>>> For digest: mailto [EMAIL PROTECTED]
> > <mailto:[EMAIL PROTECTED]> with body: "set JSP-INTEREST
> >  > >>>>>
> >  > >>>>>
> >  > >>>> DIGEST".
> >  > >>>>
> >  > >>>>
> >  > >>>>> Some relevant FAQs on JSP/Servlets can be found at:
> >  > >>>>>
> >  > >>>>> http://archives.java.sun.com/jsp-interest.html
> >  > >>>>> http://java.sun.com/products/jsp/faq.html
> >  > >>>>> http://www.esperanto.org.nz/jsp/jspfaq.jsp
> >  > >>>>> http://www.jguru.com/faq/index.jsp
> >  > >>>>> http://www.jspinsider.com
> >  > >>>>>
> >  > >>>>>
> >  > >>>>>
> >  > >>>>
> >  > >>
> >
===========================================================================
> >  > >>
> >  > >>
> >  > >>>> To unsubscribe: mailto [EMAIL PROTECTED]
> > <mailto:[EMAIL PROTECTED]> with body: "signoff
> >  > >>>>
> >  > >> JSP-INTEREST".
> >  > >>
> >  > >>>> For digest: mailto [EMAIL PROTECTED]
> > <mailto:[EMAIL PROTECTED]> with body: "set JSP-INTEREST
> >  > >>>>
> >  > >> DIGEST".
> >  > >>
> >  > >>>> Some relevant FAQs on JSP/Servlets can be found at:
> >  > >>>>
> >  > >>>> http://archives.java.sun.com/jsp-interest.html
> >  > >>>> http://java.sun.com/products/jsp/faq.html
> >  > >>>> http://www.esperanto.org.nz/jsp/jspfaq.jsp
> >  > >>>> http://www.jguru.com/faq/index.jsp
> >  > >>>> http://www.jspinsider.com
> >  > >>>>
> >  > >>>>
> >  > >>>
> >  > >>
> >
===========================================================================
> >  > >>
> >  > >>
> >  > >>> To unsubscribe: mailto [EMAIL PROTECTED]
> > <mailto:[EMAIL PROTECTED]> with body: "signoff
> >  > >>>
> >  > >> JSP-INTEREST".
> >  > >>
> >  > >>> For digest: mailto [EMAIL PROTECTED]
> > <mailto:[EMAIL PROTECTED]> with body: "set JSP-INTEREST
> >  > >>>
> >  > >> DIGEST".
> >  > >>
> >  > >>> Some relevant FAQs on JSP/Servlets can be found at:
> >  > >>>
> >  > >>> http://archives.java.sun.com/jsp-interest.html
> >  > >>> http://java.sun.com/products/jsp/faq.html
> >  > >>> http://www.esperanto.org.nz/jsp/jspfaq.jsp
> >  > >>> http://www.jguru.com/faq/index.jsp
> >  > >>> http://www.jspinsider.com
> >  > >>>
> >  > >>>
> >  > >>
> >  > >>
> >
===========================================================================
> >  > >>
> >  > >> To unsubscribe: mailto [EMAIL PROTECTED]
> > <mailto:[EMAIL PROTECTED]> with body: "signoff
> >  > >> JSP-INTEREST".
> >  > >> For digest: mailto [EMAIL PROTECTED]
> > <mailto:[EMAIL PROTECTED]> with body: "set JSP-INTEREST
> >  > >> DIGEST".
> >  > >> Some relevant FAQs on JSP/Servlets can be found at:
> >  > >>
> >  > >>  http://archives.java.sun.com/jsp-interest.html
> >  > >>  http://java.sun.com/products/jsp/faq.html
> >  > >>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
> >  > >>  http://www.jguru.com/faq/index.jsp
> >  > >>  http://www.jspinsider.com
> >  > >>
> >  > >
> >  > >
> >
===========================================================================
> >  > > To unsubscribe: mailto [EMAIL PROTECTED]
> > <mailto:[EMAIL PROTECTED]> with body: "signoff
> >  > > JSP-INTEREST".
> >  > > For digest: mailto [EMAIL PROTECTED]
> > <mailto:[EMAIL PROTECTED]> with body: "set JSP-INTEREST
> >  > > DIGEST".
> >  > > Some relevant FAQs on JSP/Servlets can be found at:
> >  > >
> >  > > http://archives.java.sun.com/jsp-interest.html
> >  > > http://java.sun.com/products/jsp/faq.html
> >  > > http://www.esperanto.org.nz/jsp/jspfaq.jsp
> >  > > http://www.jguru.com/faq/index.jsp
> >  > > http://www.jspinsider.com
> >  >
> >  >
> >
===========================================================================
> >  > To unsubscribe: mailto [EMAIL PROTECTED]
> > <mailto:[EMAIL PROTECTED]> with body: "signoff JSP-INTEREST".
> >  > For digest: mailto [EMAIL PROTECTED]
> > <mailto:[EMAIL PROTECTED]> with body: "set JSP-INTEREST DIGEST".
> >  > Some relevant FAQs on JSP/Servlets can be found at:
> >  >
> >  >  http://archives.java.sun.com/jsp-interest.html
> >  >  http://java.sun.com/products/jsp/faq.html
> >  >  http://www.esperanto.org.nz/jsp/jspfaq.jsp
> >  >  http://www.jguru.com/faq/index.jsp
> >  >  http://www.jspinsider.com
> >  >
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com
>

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

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to