Single post

tricks-in-creating-web-application-with-eclipse

1.Check if there is intalled JRE-jdk
Windows-preferences-Java-Installed JREs
If there is not add one

2.Check if there is server runtime environment set
Windows-preferences-Server-Runtime Environments
If there is not add one

3. Now start developing application
Create project
New-Web-DynamiC Web Project-give a name
4.Add application to tomcat server and run/stop the server
R-click on Server
R-Click-New-Server to add a server to the application

then right clik and select start to run
second way to run
R-click on the JSP page Run As-Run on server-select server

//==========How to create servelt:
R-Click on the project name-New-Servlet-give package name-Give servlet name

In order to invoke servlet …projectName/ServletName
//==========How to export the application as War file
File-Export-Web-War File-Give a name
Then you can run this application developed in Eclipse under webapp directory of any tomcat installations
java source files will be going into “Java Resources: src”
jsp, html go to WebContent
jars go to WebContent/lib

theme by teslathemes