Print HELLO using HTML and apache tomcat server
Right click on Package explorer→New→Other
Dynamic Web Project→Next
Name the project any thing like "myfirstwebproject"
Check Tick on "use deault location"→Next
→Next
Select generate web.......→Finish
→Yes
Now our new project is created
Select Deplyement Descrip... Have a look ;)
Now goto→window→Show view→navigator
Click WebContent→double click web.xml→
study the things :)
Now we have seen welcome list containing index.html,index.jsp etc but we didnt created such extension files
From here we are going to make html file
Right clic on WebContent→New→Other→
→Web→HTML File→Next
Name index.html that we have seen on web.xml
Select the folder WebContent→finish
Now we can type our html code, like typing in notepad :-D
After typing our code
Goto web.xml and remove all welcome list except index.html
Now we can Run our project
Right click on myfirstservletproject→Run As→Run on Server
Click OK→
Click Next→
Select our project name→Finish
See the results!!!!
enjoy programming !!!!!!
Thank you
Right click on Package explorer→New→Other
Dynamic Web Project→Next
Name the project any thing like "myfirstwebproject"
Check Tick on "use deault location"→Next
→Next
Select generate web.......→Finish
→Yes
Now our new project is created
Select Deplyement Descrip... Have a look ;)
Now goto→window→Show view→navigator
Click WebContent→double click web.xml→
study the things :)
Now we have seen welcome list containing index.html,index.jsp etc but we didnt created such extension files
From here we are going to make html file
Right clic on WebContent→New→Other→
→Web→HTML File→Next
Name index.html that we have seen on web.xml
Select the folder WebContent→finish
Now we can type our html code, like typing in notepad :-D
After typing our code
Goto web.xml and remove all welcome list except index.html
Now we can Run our project
Right click on myfirstservletproject→Run As→Run on Server
Click OK→
Click Next→
Select our project name→Finish
See the results!!!!
enjoy programming !!!!!!
Thank you
0 Comments:
Post a Comment