Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_jsp thread: Including HTML pages in Servlets - Appendix - c


Message #1 by "Arumugam Subramanian" <arumugam_a_s@u...> on Sat, 25 Nov 2000 07:39:59 -0000
Hello Arumugam,

There are sites available on the web that show you how to install,
configure and run servlets/JSPs using Tomcat 3.1 on your pc/laptop. I
followed those instructions and was able to execute servlets/JSPs on my
desktop with tomcat 3.1 as my web server/servlet container/engine. I used
JBuilder 3.5 foundation to code and run java servlet code.

Here is the site I went to: www.borland.community.com...go here and do a
search for tomcat or use google.com and search for tomcat.

hope this helps..

armr



> As per appendix c of our book, it says a HTML page can be included into a
> servlet using the RequestDispatcher interface.
> 
> I tried the program. The HTML page was included only after modifying the
> following line of the program:
> 
> As given in book:
> 
> RequestDispatcher rd 
> getServletContext().getRequestDispatcher("/copyright.html");
> 
> modified line:
> 
> RequestDispatcher rd 
> getServletContext().getRequestDispatcher("http://localhost:8080/copyright.html");
> 
> 
> I used JavaWebServer2.0 as I did not know how to use Tomcat for servlets.
> 
> In JavaWebServer2.0, you have to copy the servlet to the servlets
> directory and the html to public_html directory.
> 
> Can anyone guide me as to how to use Tomcat server for servlets and plain
> html - please?
> 
> It would be a great help to me.
> 
> Thanks,
> 
> regards
> arumugam.a.s.

  Return to Index