Загрузка...

cs506 short lecture 27 || Creating a Simple Web Application in Tomcat

Creating a Simple Web Application in Tomcat , cs506 short lecture 27,
cs506 lecture 27 ,cs506

Steps for making a Hello World Servlet
To get started we will make a customary “HelloWorldServlet”. Let’s see what
are the steps involved in writing a servlet that will produce “Hello World”
1. Create a directory structure for your application (i.e. helloapp). This is a one time process
for any application
2. Create a HelloWorldServlet source file by extending this class from HttpServlet
and overriding your desired method. For example doGet() or doPost().
3. Compile it (If get error of not having required packages, check your class path)
4. Place the class file of HelloWorldServlet in the classes folder of your web
application (i.e. myapp).
a. Note: If you are using packages then create a complete structure under classes folder.

Create a deployment descriptor (web.xml) and put it inside WEB-INF folder
6. Restart your server if already running
7. Access it using Web browser

cs506 web designing and development lecture 27

Видео cs506 short lecture 27 || Creating a Simple Web Application in Tomcat канала instructor irfan khan
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять