1) Install tomcat, which requires the pre-installation of
jdk.
2) Set variables,
JAVA_HOME=c:\programfiles\java\jdk(path
of installation of jdk)
PATH
="c:\programfiles\java\jdk\bin";%PATH%
3)During installation of tomcat,give the jre path as
"c:\programfiles\java\jre"
4)During installation of tomcat,the port number would be
'8080'.
We can change it later by going to 'server.xml' file in
tomcat folder and change the port number at the code as highlighted in the
below image and replace the file.
5) Now paste the WebRoot folder of the web project into the webapps folder of tomcat\webapps.
Note: The WebRoot is the folder with .jsp,servlets,meta-inf and other files.
a)copy webroot folder
b))pasting in
8)now start the tomcat server by going to tomcat.exe in
tomcat\bin folder.
http://localhost:port_num_in_server.xml/foldername_copied
_into_webapps. It will be executed.








No comments:
Post a Comment