What are client and server programs

Is it really necessary to write code in JSP on the client side and process the request with servlets?

I am a little confused with server-side and client-side programming, I think that

("the client side is the side where the page is lode, which can be programmed in any language, such as HTML, and can use CSS javascript, etc., and the server side is the one that processes the request coming from the client using GET and POST methods in HTML, and they can be processed through servlets ")

+4
source share
1 answer

JSP is not a client-side language. This is a server-side language that can be used to create client-side code. HTML, CSS, and JS are client languages. JSP runs on the web server with an HTTP request, generates HTML / CSS / JS code, and the web server sends it along with the HTTP response to the web browser (client), which, in turn, runs HTML / CSS / JS.

The servlet is designed to pre-request / post process HTTP requests using regular Java code before displaying the results in the JSP.

See also:

+11
source

Source: https://habr.com/ru/post/1400641/


All Articles