File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Basic servlet question

 
Xinbo Cheng
Greenhorn
Posts: 15
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3226
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Xinbo Cheng
Greenhorn
Posts: 15
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic