Загрузка...

Running java servlets on localhost server/wamp

Applications/Software Required: Wamp server Eclipse Java J2EE MySql-connector(Available at: https://dev.mysql.com/downloads/connector/j/3.1.html ) Apache Tomcat(Available at: https://tomcat.apache.org/download-80.cgi) 1. Start the wamp server and create a database using mysql server 2. Using eclipse, create a new DYNAMIC WEB PROJECT and click next. 3. Click on "NEW RUNTIME" and choose "Apache tomcat 8.0" and then click on finish. 4. Once it is created, right click on the project folder from the left nav bar and create new SERVLET 5. The logic of your code is to be written in either "doGet()" or "doPost()" method based on how you have configured your HTML form. 6. Once this is done, right-click and go to run as and select "Run on server" 7. Choose the server correctly and click on next 8. Select the Project name from the list and then click on finish. 9 In order to connect JDBC to mysql server, we need to include an additional jar file which can be downloaded from the link given in the description. 10. Once you have downloaded the file, extract the contents and place it in the Apache tomcat/lib folder and run it on the server in the same way. Video by Nikhil Bhargav Raman

Видео Running java servlets on localhost server/wamp автора Программирование: тренды и новости
Страницу в закладки Мои закладки
Все заметки Новая заметка Страницу в заметки