Закрыть
×
=0) { let js = text.slice(pos1, pos2); + '<\/' + "script" + '>'; arrText.push(js); // next pos1 = pos2; continue; } } } break; } return arrText; } function OpenDialog(parentDiv, urlContent) { parentDiv = document.getElementById('modal-background'); // new !!!!!!! parentDiv.appendChild(document.getElementById('modal-template')); document.getElementById('modal-background').style.display = "flex"; // !!!!! block document.getElementById('modal-template').style.display = "flex"; // !!!!! document.getElementById('modal-body').innerHTML = ""; post_url(urlContent, "", function(text_from_server) { var element = document.getElementById('modal-body'); element.innerHTML = text_from_server; // add scripts var arrJSText = get_scripts(text_from_server); for (var i=0; i
dir.by
Праздники ...
Праздники ...
День Октябрьской революции (7 Ноября)
Концерты, выставки ...
Концерты, выставки ...
Группа "Ария"|||Брест, Витебск, Гродно, Гомель с 13 по 18 сентября 2026
Афишу
Спорт занятия ...
Спорт занятия ...
Гимнастика для детей
Спорт занятие
Компьютер, программы...
Компьютер, программы...
Объявления ...
Объявления ...
Требуется оператор, менеджер, модель на OnlyFans
Объявление
Новости ...
Новости ...
Форум ...
Форум ...
обсуждение...
Поиск
Концерты
Спорт
Форум
Компьютер
Компьютер, программы
→
Java
→
Java web application (servlet, jsp page, basic functionality and no frameworks)
Checking, testing Tomcat web server
посмотрели
3735
раз
обновлено: 10 December 2024
Step 1. Create a new my.hml file
I created a new file
my.html
in the
C:\Program Files\Apache Software Foundation\Tomcat 9.0\webapps\ROOT
File
my.html
contains:
Hello!
Step 2. Check the service
Open
Services
and see that the service is installed in the system
Windows
and is working.
Step 3. Let's make a request to the server. Open Google Chrome and see the result
Open
Google Chrome
and enter:
http://localhost:8081/my.html
The server will process the request and show the result:
Note!
I'm using the
8081
port because
I entered this value when installing
Tomcat
...
← Previous topic
Installation Tomcat web server (download and install for Windows)
Next topic →
What is Maven
Your feedback ... Comments ...
Your Name
Your comment
(www links can only be added by a logged-in user)
+ Picture
Объявления
Объявления
Download and install
•
Installation JDK (download and install the Java library for Windows)
•
Download and install IntelliJ IDEA to explore Java, Spring, Jakarta EE | Functionality and differences: Community | Ultimate
•
Error "JDK is missing" | Java
Java (class, interface, collections, etc.)
•
Create a simple console app in IntelliJ IDEA to learn Java
•
Collections in Java
•
class ArrayList<E> in Java
•
class Vector<E> in Java
•
class LinkedList<E> in Java
•
class HashSet<E> in Java
•
class LinkedHashSet<E> in Java
•
Collections.singletonList("Hello") returns an immutable list containing exactly one specified element | Java collection
•
Collections class (all functions) | Java
•
stream.filter(...) select elements according to your criterion | Java collection | Example: allCars.stream().filter(item -> item.Price < 30000).toList()
•
What is interface in Java ?
•
Directly in the code (at runtime) we make an implementation for the interface | Java
•
Threads in Java
•
lambda is an unnamed method (no name and no class owned) | Java
•
Exceptions and handling in Java. Example: try {...} catch (Exception e) {...}
•
Why use throws Exception in the function name in Java? Answer: The method throws an exception and there is no handling of try catch. Example: float CalculateDensity(float mass, float volume) throws Exception { ... throw new Exception("Error! Volume is zero."); ... }
Java web application (servlet, jsp page, basic functionality and no frameworks)
•
Creating a new simple web application (jsp web page) | Java, Maven
•
Create a web servlet (the servlet is located on the web server, returns the result on request) | Java
•
Installation Tomcat web server (download and install for Windows)
•
Check, test Tomcat web server (create a new my.hml file)
•
What is Maven
•
What is a dynamic web page jsp (Java Server Page) ?
•
How to install Smart Tomcat plugin in Intellij Idea
•
Error "The SDK is not specified for module ... | Project SDK is not defined ..." in IntelliJ IDEA | Java
Spring in Java (Spring Framework, Spring Data, Spring Boot, ...)
•
What is Spring? Why use Spring in Java?
•
What is Spring Bean? What is Spring Container? IoC (inversion of control) | Creating a simple Spring project and configuration Spring Container in an XML file | Editor IntelliJ Idea and language Java
•
What is Dependency Injection in Spring? Creating a simple Spring project with Dependency Injection in the constructor with the attributes @Component, @Autowired | Editor IntelliJ Idea and language Java
•
Create a new Spring Web application (the request goes to the Controller → Controller creates a response as text or json) | Java, Spring Web, Spring Boot, Maven
•
Creating a new Spring WebSocket application (Java WebSocket sends a message to the JavaScript WebSocket) | Java, Spring WebSocket, Spring Boot, Maven
•
Create Azure Web App with the type Java (free). That is, create an empty web server
•
Put the Java Spring web application in Azure
•
Connect to the application Azure Web App (Java) via FTP | use File Explorer
•
Error "The SDK is not specified for module ... | Project SDK is not defined ..." in IntelliJ IDEA | Java, Spring Boot
•
How to install Spring WebSocket plugin in Intellij Idea
Jakarta EE / Java EE in Java (Web Applications, Web Services)
•
What is Jakarta EE (Java EE)? | In which editor (program) is it convenient to write Jakarta EE (Java EE) code?
•
Creating a simple web project in IntelliJ Idea Ultimate | Jakarta EE (Java EE)
Struts in Java (extends API Java Servlet using MVC)
•
What is Struts | Java
Courses, training
•
Course "Java developer" from Yandex
Interview
•
Interviews on Java
Ваши вопросы присылайте по почте:
info@dir.by