You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Melissa Matthews <me...@cendex.com> on 2000/07/18 21:54:44 UTC

New Servlet Configuration Question

As a follow up to my previous question,  I now believe I have my servlets in
the right directory -- /myproj/WEB-INF/classes.  When I try to access one of
these servlets from an HTML page (located in /myproj) with:

<FORM METHOD="GET" ACTION="/servlet/ProductSearchServlet">

I get a "File not found" error.

My tomcat-apache.conf contains the following --

Alias /myproj C:\jakarta-tomcat\webapps\myproj
<Directory "C:\jakarta-tomcat\webapps\myproj">
    Options Indexes FollowSymLinks
</Directory>
ApJServMount /myproj/servlet /myproj
<Location /myproj/WEB-INF/ >
    AllowOverride None
    deny from all
</Location>

Is there something else I need to configure so that it finds the servlet?  I
know this is probably a basic question, but any guidance would be greatly
appreciated!

Melissa Matthews

Cendex Corp
Phone 703.205.9256
Fax 703.205.2961



Re: New Servlet Configuration Question

Posted by "Ramesh Kumar.T" <ra...@india.adventnet.com>.
hi,
 if u have the servlet in a package just use the package name also
something like
and one more thing  from which directory do u start u'r application

<FORM METHOD="GET"
ACTION=path+"servlet/com..test.ProductSearchServlet">
where the  path must be the relative path
say for example you have a directory structure like this
test directory
|
|--html
|--servlets
|
--classes
 and you invoke from html directory then the path will be "../"
hope this helps
bye
Ramesh
"W. Paul Caligiuri" wrote:

> Melissa,
>
> Maybe you need <FORM METHOD="GET"
> ACTION="/myContextName/servlet/ProductSearchServlet">
>
> Thank you,
>
> W. Paul Caligiuri
> wpaulc@agency.com
>
> -----Original Message-----
> From: Melissa Matthews [mailto:melissa@cendex.com]
> Sent: Tuesday, July 18, 2000 2:55 PM
> To: 'tomcat-user@jakarta.apache.org'
> Subject: New Servlet Configuration Question
>
> As a follow up to my previous question,  I now believe I have my servlets in
> the right directory -- /myproj/WEB-INF/classes.  When I try to access one of
> these servlets from an HTML page (located in /myproj) with:
>
> <FORM METHOD="GET" ACTION="/servlet/ProductSearchServlet">
>
> I get a "File not found" error.
>
> My tomcat-apache.conf contains the following --
>
> Alias /myproj C:\jakarta-tomcat\webapps\myproj
> <Directory "C:\jakarta-tomcat\webapps\myproj">
>     Options Indexes FollowSymLinks
> </Directory>
> ApJServMount /myproj/servlet /myproj
> <Location /myproj/WEB-INF/ >
>     AllowOverride None
>     deny from all
> </Location>
>
> Is there something else I need to configure so that it finds the servlet?  I
> know this is probably a basic question, but any guidance would be greatly
> appreciated!
>
> Melissa Matthews
>
> Cendex Corp
> Phone 703.205.9256
> Fax 703.205.2961


RE: New Servlet Configuration Question

Posted by "W. Paul Caligiuri" <wp...@agency.com>.
Melissa,

Maybe you need <FORM METHOD="GET"
ACTION="/myContextName/servlet/ProductSearchServlet">

Thank you,

W. Paul Caligiuri
wpaulc@agency.com


-----Original Message-----
From: Melissa Matthews [mailto:melissa@cendex.com]
Sent: Tuesday, July 18, 2000 2:55 PM
To: 'tomcat-user@jakarta.apache.org'
Subject: New Servlet Configuration Question


As a follow up to my previous question,  I now believe I have my servlets in
the right directory -- /myproj/WEB-INF/classes.  When I try to access one of
these servlets from an HTML page (located in /myproj) with:

<FORM METHOD="GET" ACTION="/servlet/ProductSearchServlet">

I get a "File not found" error.

My tomcat-apache.conf contains the following --

Alias /myproj C:\jakarta-tomcat\webapps\myproj
<Directory "C:\jakarta-tomcat\webapps\myproj">
    Options Indexes FollowSymLinks
</Directory>
ApJServMount /myproj/servlet /myproj
<Location /myproj/WEB-INF/ >
    AllowOverride None
    deny from all
</Location>

Is there something else I need to configure so that it finds the servlet?  I
know this is probably a basic question, but any guidance would be greatly
appreciated!

Melissa Matthews

Cendex Corp
Phone 703.205.9256
Fax 703.205.2961