Originally posted by Sunny T:
[QB]I would like to know
1. can i compile the servlets using servlet.jar of tomcat or j2ee.jar of j2sdkee1.3.1
sol : Yeah u need servlet.jar
2. after compiling that how to set the path in autoexec.bat and how to set the environment variable(Do i need to set both of them or not)
sol: u can set path in one of the 2 ways...
Either by setting values in Environment variable Tab or by editing autoexec.bat file
3. where to place my servlet source code, class file and what is url i need to type in the browser.
sol: Suppose u have your 'Hello.java' servlet file in 'Trialweb' folder then u place the above folder as shown below
and after u can copmile the servlet by using javac -d command or by javac and copy the class file from the current location to
4. how to see the results(servlet) on command prompt
After doing the above task u can start the tomcat.
And when the enginee is started u can go the browser and type the below
I hope u will find the output (result ) of servlet... but in browser...
Hey! what exactly u want in command prompt..?