How to run a Servlet?
STEPS:
STEP 1: DOWNLOADING JSDK2.1
STEP 2: SETTING UP THE JSDK
STEP 3: CREATING A HTML FILE
STEP 4: CREATING A SERVLET CLASS
STEP 5: STARTING THE SERVER
STEP 6: BROWSER INTERPRETATION OF THE SERVER STARTED
STEP 7: VIEWING THE HTML FILE FROM THE BROWSER
STEP 8: STOPPING THE SERVER
STEP 1:DOWNLOADING JSDK2.1
Type this url in your browser to download the J2SDK(JAVA 2 SERVLET DEVELOPMENT KIT)
http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/VerifyItem-Start/jsdk2_1-win.zip?BundledLineItemUUID=iCpIBe.m248AAAEgVllHfNHo&OrderID=9MFIBe.mvEQAAAEgRllHfNHo&ProductID=Mx3ACUFB4OIAAAEY1wI5AXis&FileName=/jsdk2_1-win.zip
STEP 2:SETTING UP THE JSDK
Extract the contents from the zip file
The folder name is jsdk2.1.
Copy this folder into the disk drive you want(I have used C: drive)
STEP 3:CREATING A HTML FILE
Type a html file (which invokes a servlet).
Store the html file in the directory(C:\jsdk2.1\examples\servlets)
Note:
Form tag in the html should look like
form action="http://localhost:8080/examples/servlet/yourservletclassname"
STEP 4:CREATING A SERVLET CLASS
Type the servlet class
Compile it
Copy the class file
Paste the class file in the directory(C:\jsdk2.1\examples\WEB-INF\servlets)
STEP 5:STARTING THE SERVER
Go to the directory C:\jsdk2.1
Double click startserver.bat
a command window will open (just minimize it)
STEP 6:BROWSER INTERPRETATION OF THE SERVER STARTED
Open ur browser
Type "http://localhost:8080" in the address bar and press Enter
You will see the Introduction page with Documentation and Examples link
(Success there is a server running on port 8080)
STEP 7: VIEWING THE HTML FILE FROM THE BROWSER
Type "http://localhost:8080/examples/servlets/yourfile.html"
Press Enter
the html contents will be displayed
The servlet wil be invoked according to your actions.
STEP 8: STOPPING THE SERVER
To stop ur server go to C:\jsdk2.1
double click stopserver.bat
Have a nice Servlet Programming Experience
Cheers :)
Thursday, April 23, 2009
Wednesday, April 22, 2009
copied song in kadhalil vilundaen
This song is copied by vijay antony in kadhalil vilundaen..unakena naan..
Now surf faster and smarter ! Check out the new Firefox 3 - Yahoo! Edition * Click here!
Tuesday, April 21, 2009
Java Struts links
These are the links for java struts
Cricket on your mind? Visit the ultimate cricket website. Enter now!
Sunday, April 12, 2009
Networks unit 5 SNMP portions
These are the chapters to be studied from William Stalling book for SNMP unit 5 in networks..
- chap1
- chap2
- chap3
- chap4
- chap5
- chap6
- chap7
- chap8
- chap9
- For snmpv2 we have to now the syntax changes which snmpv2 has when compared to snmpv1
- comparison of snmpv1 and snmpv2
- chap 14
- chap 15
Sir asked to study chap15 only if v have time before the exam..
Friday, April 10, 2009
vijay frustrated due to villu flop
i found this video while seeing the vieo u sent..vijay is frustrated..
Aftermath of villu
hi see this video... it ll be humorous... enjoy seeing it...
http://www.youtube.com/watch?v=9S4cEcwV0IA&feature=player_embedded
http://www.youtube.com/watch?v=9S4cEcwV0IA&feature=player_embedded
Thursday, April 9, 2009
Udp echo program using broadcast
In this program the client broadcasts the message which is received by 3 servers n echoed backed to the client.The client receives 3 echo response from all 3 servers.click enter to get response from each server..download thefile from the link below..
Tuesday, April 7, 2009
Saturday, April 4, 2009
packages to be installed for running rpc
install the packages using the following commands inorder to run rpc in ubuntu
The following is the error screen i encountered and the actions taken..
ubuntu@ubuntu:~$ g++ -c rand_client.c
The program 'g++' can be found in the following packages:
* g++
* pentium-builder
Try: sudo apt-get install
bash: g++: command not found
ubuntu@ubuntu:~$ sudo apt-get install g++
ubuntu@ubuntu:~$ ./rand_server
Cannot register service: RPC: Unable to receive; errno = Connection refused
unable to register (RAND_PROG, RAND_VERS, udp).ubuntu@ubuntu:~$ ./rand_server
Cannot register service: RPC: Unable to receive; errno = Connection refused
unable to register (RAND_PROG, RAND_VERS, udp).ubuntu@ubuntu:~$ netstat -a|grep nfs
ubuntu@ubuntu:~$ sudo apt-get install quota
[sudo] password for ubuntu:
ubuntu@ubuntu:~$ sudo apt-get install nfs-kernel-server
ubuntu@ubuntu:~$ ./rand_server
- ubuntu@ubuntu:~$ sudo apt-get install g++
- ubuntu@ubuntu:~$ sudo apt-get install quota
- ubuntu@ubuntu:~$ sudo apt-get install nfs-kernel-server
The following is the error screen i encountered and the actions taken..
ubuntu@ubuntu:~$ g++ -c rand_client.c
The program 'g++' can be found in the following packages:
* g++
* pentium-builder
Try: sudo apt-get install
bash: g++: command not found
ubuntu@ubuntu:~$ sudo apt-get install g++
ubuntu@ubuntu:~$ ./rand_server
Cannot register service: RPC: Unable to receive; errno = Connection refused
unable to register (RAND_PROG, RAND_VERS, udp).ubuntu@ubuntu:~$ ./rand_server
Cannot register service: RPC: Unable to receive; errno = Connection refused
unable to register (RAND_PROG, RAND_VERS, udp).ubuntu@ubuntu:~$ netstat -a|grep nfs
ubuntu@ubuntu:~$ sudo apt-get install quota
[sudo] password for ubuntu:
ubuntu@ubuntu:~$ sudo apt-get install nfs-kernel-server
ubuntu@ubuntu:~$ ./rand_server
Subscribe to:
Posts (Atom)
Blog Archive
-
▼
2009
(57)
-
▼
April
(11)
- Running a servlet using jsdk2.1
- copied song in kadhalil vilundaen
- Java Struts links
- Protect Your Computer Against Conficker Or Any USB...
- Protecting the pc from script based viruses
- Networks unit 5 SNMP portions
- vijay frustrated due to villu flop
- Aftermath of villu
- Udp echo program using broadcast
- asp program links
- packages to be installed for running rpc
-
▼
April
(11)
Translate This Page
My Mom's blog
If u are a person interested in crafts and fabric stuffs pls check out this link.. http://www.fabriccraft.blogspot.com/