The listings param-name just does not display the directory structure of
your context, and thats it.
It does not block any files.
It should show Login.jsp when you type the complete url.
I have tried the same on my system and its working fine.
Just check whether tomcat is throwing any error.

Vikram.

> -----Original Message-----
> From: Rajarshi Ghosh [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 16, 2002 10:59 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Disable Directory Listing
>
>
> Vikramjit,
>  I think you misunderstood my point.If I do whatever you said then the
> directoty listing for the URL http://servername/lmc is
> disabled. But if I
> give the URL as http://servername/lmc/Login.jsp then also I
> am not able to
> get the output. It is showing the same page as previous.Could
> you please
> explain me why?
>
> Regards
>
> ---------------- LOVE IS GOD -------------------
> Mr. Rajarshi Ghosh
> Project Leader
> LearningMate
> A division of Educomp Datamatics Limited
> #16, 80 Feet Road, IV Block,
> Koramangala, Bangalore 560034
> India
> Voice: 91-80-5501051/52/53/55 Ext: 118
> Fax   : 91-80-5501051/52/53/55
> [EMAIL PROTECTED]
> www.learningmate.com
> ----- Original Message -----
> From: "Vikramjit Singh" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, September 17, 2002 9:18 AM
> Subject: Re: Disable Directory Listing
>
>
> > > -----Original Message-----
> > > From: Rajarshi Ghosh [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, September 16, 2002 6:28 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: Disable Directory Listing
> > >
> > >
> > > Hi Vikramjit,
> > > If  I do this it is not giving me access to any
> file.Could you please
> > > expalin it in detail.
> >
> > As you had said, that you dont want to show the directory
> listing. So that
> > what that does.
> > You can have a welcome file list, as suggested earlier, to
> show a default
> > page.
> >
> > > Thanks
> > > ---------------- LOVE IS GOD -------------------
> > > Mr. Rajarshi Ghosh
> > > Project Leader
> > > LearningMate
> > > A division of Educomp Datamatics Limited
> > > #16, 80 Feet Road, IV Block,
> > > Koramangala, Bangalore 560034
> > > India
> > > Voice: 91-80-5501051/52/53/55 Ext: 118
> > > Fax   : 91-80-5501051/52/53/55
> > > [EMAIL PROTECTED]
> > > www.learningmate.com
> >
> > Vikram.
> > > ----- Original Message -----
> > > From: "Vikramjit Singh" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Monday, September 16, 2002 4:05 PM
> > > Subject: Re: Disable Directory Listing
> > >
> > >
> > > > > -----Original Message-----
> > > > > From: Rajarshi Ghosh [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Monday, September 16, 2002 3:34 AM
> > > > > To: [EMAIL PROTECTED]
> > > > > Subject: Disable Directory Listing
> > > > >
> > > > >
> > > > > Hi All,
> > > > >   I have integrated tomcat-4.0.4 with Apache 2.40 server.
> > > > > I have created a context /lmc in tomcat and able to access
> > > > > http://servername/lmc/Login.jsp properly.
> > > > > But when I give the URL http://servername/lmc it shows the
> > > > > Directory listing of lmc.I want to restrict this
> > > > > listing.Please let me know how can I do this.
> > > >
> > > > In your context's web.xml do this
> > > >
> > > >     <servlet>
> > > >         <servlet-name>default</servlet-name>
> > > >         <servlet-class>
> > > >           org.apache.catalina.servlets.DefaultServlet
> > > >         </servlet-class>
> > > >         <init-param>
> > > >             <param-name>debug</param-name>
> > > >             <param-value>0</param-value>
> > > >         </init-param>
> > > >         <init-param>
> > > >             <param-name>listings</param-name>
> > > >             <param-value>false</param-value>
> > > >         </init-param>
> > > >         <load-on-startup>1</load-on-startup>
> > > >     </servlet>
> > > >
> > > >   <!--   listings            Should directory listings be
> > > produced if
> > > there
> > > > -->
> > > >   <!--                       is no welcome file in this
> > > directory?  [true]
> > > > -->
> > > >
> > > > > Thanks..
> > > > > ---------------- LOVE IS GOD -------------------
> > > > > Mr. Rajarshi Ghosh
> > > > > Project Leader
> > > > > LearningMate
> > > > > A division of Educomp Datamatics Limited
> > > > > #16, 80 Feet Road, IV Block,
> > > > > Koramangala, Bangalore 560034
> > > > > India
> > > > > Voice: 91-80-5501051/52/53/55 Ext: 118
> > > > > Fax   : 91-80-5501051/52/53/55
> > > > > [EMAIL PROTECTED]
> > > > > www.learningmate.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
> > > >
> > > >
> > >
> > > ==============================================================
> > > =============
> > > 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
> >
> >
> >
>
> ==============================================================
> =============
> 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