|
|
|
|
|
|
|
|
|
|
|
|
|
|
JAVA SERVLET
Compile the Source File First you have to include some lines into your Autoexec.bat files. These are set CLASSPATH = C:\JSDK2.0\LIB;C:\JSDK2.0\LIB\JSDK.JAR; path = c:\jsdk2.0\bin;c:\jsdk2.0\lib; Compile the source file using the Java compiler. If the compilation succeeds, the compiler creates a file named First_Serv.class in the same directory (folder) as the Java source file (First_Serv.java). This class file contains Java bytecodes. C:/>JAVAC First_Serv.java Running A Servlet Calling Servlets From a Browser Once you have written your servlet, you can test it
with the utility included in the JSDK. The JSDK 2.0 has a utility called First run the utility called http://machine-name:port/servlet/servlet-name
|
|
||||||||
|
|
||||||||||
|
|
||||||||||
|
|
||||||||||
|
|