File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Basic servlet question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Basic servlet question" Watch "Basic servlet question" New topic

Basic servlet question

Xinbo Cheng

Joined: Jan 05, 2001
Posts: 15
Hi, here is a beginner's question for you:
Where should I put the .html file if I want to use the file
as a front end to collect form data? I have tomcat 3.2.1 installed on Windows 98. Thanks!
Tony Alicea

Joined: Jan 30, 2000
Posts: 3222
As you probably know, you can have many applications running in Jakarta-Tomcat.
I have the HTML/JSP files under the root for the particular application.
For example, I have the following setup:
Under that DIR, I have a few apps, one DIR per app.
For the JavaRanch JSP files, then, I have them in
The browser needs to be given the URL:
to reach the index.jsp file of the JavaRanch app.

Tony Alicea
Senior Java Web Application Developer, SCPJ2, SCWCD
Xinbo Cheng

Joined: Jan 05, 2001
Posts: 15
Thanks, Tony, for your kind reply. If I want my FrontEnd.HTML file to collect data for one of my servlets which is sitting in
where MyServlets is a package name. Do I have to do anything
I agree. Here's the link:
subject: Basic servlet question