It's not a secret anymore!*
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Basic servlet question" Watch "Basic servlet question" New topic
Author

Basic servlet question

Xinbo Cheng
Greenhorn

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!
Xinbo
Tony Alicea
Desperado
Sheriff

Joined: Jan 30, 2000
Posts: 3222
    
    5
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:
c:\jakarta-tomcat\webapps\
Under that DIR, I have a few apps, one DIR per app.
For the JavaRanch JSP files, then, I have them in
c:\jakarta-tomcat\webapps\JavaRanch\
The browser needs to be given the URL:
http://localhost:8080/JavaRanch/index.jsp
to reach the index.jsp file of the JavaRanch app.


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

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
C:\tomcat\webapps\ROOT\WEB-INF\classes\MyServlets
where MyServlets is a package name. Do I have to do anything
differently?
Xinbo
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Basic servlet question
 
Similar Threads
log4j - log to a file
chinatag SCEA5 exam simulator
Design issue in jsp
JSP and Path related Question
Can I have a response object content type = "null"?