Prentice Hall and Sun Microsystems. Personal use only; do not redistribute.
2.5 Simple HTML Building Utilities
31
Listing 2.5 servletc.bat 
@echo off
rem This is the version for the Java Web Server.
rem See http://www.coreservlets.com/ for other versions.
set CLASSPATH=C:\JavaWebServer2.0\lib\servlet.jar;
C:\JavaWebServer2.0\lib\jsp.jar; 
C:\MyServlets
C:\JDK1.1.8\bin\javac  d C:\JavaWebServer2.0\servlets %1%
http://localhost/servlet/coreservlets.HelloWWW2
would invoke the 
HelloWWW2
 servlet, as illustrated in Figure 2 3.
Figure 2 3
Invoking a servlet in a package via 
http://hostname/servlet/packagename.servletName.
2.5 Simple HTML Building Utilities
An HTML document is structured as follows:
......
...
You might be tempted to omit part of this structure, especially the 
DOC 
TYPE
 line, noting that virtually all major browsers ignore it, even though the
Second edition of this book: www.coreservlets.com; Sequel: www.moreservlets.com.
Servlet and JSP training courses by book's author: courses.coreservlets.com.






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

jsp web hosting

 

Our partners: PHP: Hypertext Preprocessor Best Web Hosting Java Web Hosting Jsp Web Hosting Cheapest Web Hosting

Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved