{"id":4796,"date":"2020-03-23T11:53:05","date_gmt":"2020-03-23T04:53:05","guid":{"rendered":"https:\/\/bap-software.net\/?post_type=knowledge&#038;p=4796"},"modified":"2025-05-27T15:38:12","modified_gmt":"2025-05-27T08:38:12","slug":"java-web-app","status":"publish","type":"knowledge","link":"https:\/\/bap-software.net\/en\/knowledge\/java-web-app\/","title":{"rendered":"How to build a Web Application Using Java"},"content":{"rendered":"<p><\/p>\n<p data-start=\"87\" data-end=\"525\"><em><strong data-start=\"52\" data-end=\"179\">Java is a programming language used in the development of web applications, desktop applications, and Android applications.<\/strong><\/em><\/p>\n<p data-start=\"87\" data-end=\"525\">This article is for those who want to develop web applications using Java or those who have started learning Java but still don\u2019t clearly understand how Java can be useful. It will explain the basic concepts and provide examples related to web application development with Java.<\/p>\n<p data-start=\"87\" data-end=\"525\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-4930 size-full\" src=\"https:\/\/cdn.bap-software.net\/2020\/03\/java-web-app-1.jpg\" alt=\"java web\u30a2\u30d7\u30ea\" width=\"650\" height=\"406\" \/><\/p>\n<h2 data-start=\"462\" data-end=\"522\"><strong>1. Basic knowledge to build a web application using Java<\/strong><\/h2>\n<p data-start=\"524\" data-end=\"833\">Before you start creating a web application with Java, you need to understand some fundamental concepts about web applications. A <a href=\"https:\/\/bap-software.net\/en\/services\/apps-development\/\">web application<\/a> is software that runs in a web browser. It is built on a client-server architecture, where two computers\u2014the client and the server\u2014are connected through a network.<\/p>\n<ul data-start=\"835\" data-end=\"922\">\n<li data-start=\"835\" data-end=\"871\">\n<p data-start=\"837\" data-end=\"871\"><strong data-start=\"837\" data-end=\"848\">Client:<\/strong> The user\u2019s computer.<\/p>\n<\/li>\n<li data-start=\"872\" data-end=\"922\">\n<p data-start=\"874\" data-end=\"922\"><strong data-start=\"874\" data-end=\"885\">Server:<\/strong> The computer providing the services.<\/p>\n<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"481\" height=\"393\" class=\"aligncenter size-full wp-image-4798\" src=\"https:\/\/cdn.bap-software.net\/2020\/03\/java-web-application.jpg\" alt=\"java web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\" \/><\/p>\n<p data-start=\"924\" data-end=\"1294\">The client performs simple operations such as opening a browser, entering data, or displaying information received from the server. Meanwhile, the server handles more complex tasks like managing databases or processing a large number of simultaneous accesses from tens of thousands of users. Therefore, the server usually has much more powerful hardware than the client.<\/p>\n<p data-start=\"1296\" data-end=\"1608\">The client sends a <strong data-start=\"1315\" data-end=\"1326\">request<\/strong> to the server over the network, and the server sends back a <strong data-start=\"1387\" data-end=\"1399\">response<\/strong> to provide the service. The server side is divided into three types of servers that work together. This structure is called the <strong data-start=\"1528\" data-end=\"1555\">three-tier architecture<\/strong>, and most modern web applications follow this model:<\/p>\n<p data-start=\"1306\" data-end=\"1603\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-4931 size-full\" src=\"https:\/\/cdn.bap-software.net\/2020\/03\/java-web-app-development-1.jpg\" alt=\"java web\u30a2\u30d7\u30ea \u958b\u767a\" width=\"640\" height=\"360\" \/><\/p>\n<ul>\n<li data-start=\"1612\" data-end=\"1659\"><strong data-start=\"1612\" data-end=\"1627\">Web Server:<\/strong> Communicates with the client.<\/li>\n<li data-start=\"1660\" data-end=\"1738\">\n<p data-start=\"1662\" data-end=\"1738\"><strong data-start=\"1662\" data-end=\"1697\">Application Server (AP Server):<\/strong> Processes requests and retrieves data.<\/p>\n<\/li>\n<li data-start=\"1739\" data-end=\"1820\">\n<p data-start=\"1741\" data-end=\"1820\"><strong data-start=\"1741\" data-end=\"1773\">Database Server (DB Server):<\/strong> Stores the necessary data for the web service.<\/p>\n<\/li>\n<\/ul>\n<h2 data-start=\"1827\" data-end=\"1879\"><strong>2. What role does Java play in web applications?<\/strong><\/h2>\n<p data-start=\"1881\" data-end=\"2026\">To understand how Java works in web applications, you first need to distinguish between two types of content: <strong data-start=\"1991\" data-end=\"2001\">static<\/strong> and <strong data-start=\"2006\" data-end=\"2017\">dynamic<\/strong> content.<\/p>\n<h3 data-start=\"2028\" data-end=\"2072\"><strong>2.1. Dynamic content and static content<\/strong><\/h3>\n<p data-start=\"2074\" data-end=\"2120\">Websites are generally divided into two types:<\/p>\n<ul data-start=\"2122\" data-end=\"2455\">\n<li data-start=\"2122\" data-end=\"2295\">\n<p data-start=\"2124\" data-end=\"2295\"><strong data-start=\"2124\" data-end=\"2144\">Static websites:<\/strong> Display the same content to all users at all times.<br data-start=\"2196\" data-end=\"2199\" \/>(Example: A company introduction page \u2013 content remains the same regardless of who visits it.)<\/p>\n<\/li>\n<li data-start=\"2297\" data-end=\"2455\">\n<p data-start=\"2299\" data-end=\"2455\"><strong data-start=\"2299\" data-end=\"2320\">Dynamic websites:<\/strong> Display different content depending on the client\u2019s request.<br data-start=\"2381\" data-end=\"2384\" \/>(Example: An online shopping site \u2013 purchase history varies by user.)<\/p>\n<\/li>\n<\/ul>\n<p data-start=\"2457\" data-end=\"2712\">For static content, the web server simply returns predefined content to the client. But for dynamic content, after receiving a request, the web server must work with the application server to process data and retrieve information from the database server.<\/p>\n<h3 data-start=\"2714\" data-end=\"2775\"><strong>2.2. Java as a technology for generating dynamic content<\/strong><\/h3>\n<p data-start=\"2777\" data-end=\"2976\">As mentioned earlier, at the application server level, applications are executed based on requests received from the web server. The programming language used to build these applications is <strong data-start=\"2967\" data-end=\"2975\">Java<\/strong>.<\/p>\n<p data-start=\"2978\" data-end=\"3165\">Java has many advantages such as being platform-independent, fast in execution, and highly secure. For these reasons, it is one of the most widely used programming languages in the world.<\/p>\n<h2 data-start=\"3172\" data-end=\"3228\"><strong>3. Examples of web applications developed using Java<\/strong><\/h2>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-4800\" src=\"https:\/\/cdn.bap-software.net\/2020\/03\/how-to-make-java-web-application.jpg\" alt=\"java web\u30a2\u30d7\u30ea \u4f5c\u308a\u65b9 \" \/><\/p>\n<p data-start=\"3230\" data-end=\"3330\">Most web applications can be developed using Java. Some well-known web apps built with Java include:<\/p>\n<ul>\n<li data-start=\"3334\" data-end=\"3343\">Twitter<\/li>\n<li data-start=\"3346\" data-end=\"3356\">Evernote<\/li>\n<li data-start=\"3359\" data-end=\"3367\">Google<\/li>\n<li data-start=\"3370\" data-end=\"3379\">YouTube<\/li>\n<li data-start=\"3382\" data-end=\"3391\">Rakuten<\/li>\n<li data-start=\"3394\" data-end=\"3400\">eBay<\/li>\n<li data-start=\"3403\" data-end=\"3409\">Amazon<\/li>\n<\/ul>\n<p data-start=\"3411\" data-end=\"3525\">Thanks to its high processing performance, Java is particularly suitable for large-scale web services and systems.<\/p>\n<h2 data-start=\"3532\" data-end=\"3595\"><strong>4. Getting started with web application development in Java<\/strong><\/h2>\n<p data-start=\"3597\" data-end=\"3895\">So how do you start learning to develop web applications with Java? First, you need to study the basics of Java and set up a development environment. Many websites offer free video tutorials that provide an overview, coding lessons, and setup guides. You should take advantage of these resources.<\/p>\n<p data-start=\"3897\" data-end=\"4007\">Once you have a general understanding through videos, you can also buy specialized books to study more deeply.<\/p>\n<p data-start=\"4009\" data-end=\"4041\"><strong data-start=\"4009\" data-end=\"4041\">Some websites to learn Java:<\/strong><\/p>\n<ul data-start=\"4043\" data-end=\"4074\">\n<li data-start=\"4043\" data-end=\"4057\">\n<p data-start=\"4045\" data-end=\"4057\">Dotinstall<\/p>\n<\/li>\n<li data-start=\"4058\" data-end=\"4074\">\n<p data-start=\"4060\" data-end=\"4074\">Uzukare Online<\/p>\n<\/li>\n<\/ul>\n<p data-start=\"4076\" data-end=\"4248\">Have you understood the basic knowledge needed to build web applications with Java? Understanding how web applications work will give you more motivation to learn Java. Good luck, and may you soon become a professional Java developer!<\/p>\n<p><\/p>","protected":false},"author":10,"featured_media":4930,"template":"","meta":{"_acf_changed":false},"tags":[],"blog-cat":[2058],"class_list":["post-4796","knowledge","type-knowledge","status-publish","has-post-thumbnail","hentry","blog-cat-technology"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.1 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to build a Web Application Using Java - BAP SOFTWARE<\/title>\n<meta name=\"description\" content=\"Java is a programming language used in the development of web applications, desktop applications, and Android applications.This article is for those who...\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/bap-software.net\/en\/knowledge\/java-web-app\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to build a Web Application Using Java\" \/>\n<meta property=\"og:description\" content=\"Java is a programming language used in the development of web applications, desktop applications, and Android applications.This article is for those who...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/bap-software.net\/en\/knowledge\/java-web-app\/\" \/>\n<meta property=\"og:site_name\" content=\"Software development - offshore service | BAP Software\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/bap32\" \/>\n<meta property=\"article:modified_time\" content=\"2025-05-27T08:38:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.bap-software.net\/2020\/03\/java-web-app-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"650\" \/>\n\t<meta property=\"og:image:height\" content=\"406\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@bapsoftware\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"10 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/bap-software.net\\\/en\\\/knowledge\\\/java-web-app\\\/\",\"url\":\"https:\\\/\\\/bap-software.net\\\/en\\\/knowledge\\\/java-web-app\\\/\",\"name\":\"How to build a Web Application Using Java - BAP SOFTWARE\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/bap-software.net\\\/en\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/bap-software.net\\\/en\\\/knowledge\\\/java-web-app\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/bap-software.net\\\/en\\\/knowledge\\\/java-web-app\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/cdn.bap-software.net\\\/2020\\\/03\\\/java-web-app-1.jpg\",\"datePublished\":\"2020-03-23T04:53:05+00:00\",\"dateModified\":\"2025-05-27T08:38:12+00:00\",\"description\":\"Java is a programming language used in the development of web applications, desktop applications, and Android applications.This article is for those who...\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/bap-software.net\\\/en\\\/knowledge\\\/java-web-app\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[[\"https:\\\/\\\/bap-software.net\\\/en\\\/knowledge\\\/java-web-app\\\/\"]]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/bap-software.net\\\/en\\\/knowledge\\\/java-web-app\\\/#primaryimage\",\"url\":\"https:\\\/\\\/cdn.bap-software.net\\\/2020\\\/03\\\/java-web-app-1.jpg\",\"contentUrl\":\"https:\\\/\\\/cdn.bap-software.net\\\/2020\\\/03\\\/java-web-app-1.jpg\",\"width\":650,\"height\":406,\"caption\":\"java web\u30a2\u30d7\u30ea\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/bap-software.net\\\/en\\\/knowledge\\\/java-web-app\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/bap-software.net\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Knowledge\",\"item\":\"https:\\\/\\\/bap-software.net\\\/en\\\/knowledge\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to build a Web Application Using Java\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/bap-software.net\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/bap-software.net\\\/en\\\/\",\"name\":\"Software development - offshore service | BAP Software\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/bap-software.net\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to build a Web Application Using Java - BAP SOFTWARE","description":"Java is a programming language used in the development of web applications, desktop applications, and Android applications.This article is for those who...","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/bap-software.net\/en\/knowledge\/java-web-app\/","og_locale":"en_US","og_type":"article","og_title":"How to build a Web Application Using Java","og_description":"Java is a programming language used in the development of web applications, desktop applications, and Android applications.This article is for those who...","og_url":"https:\/\/bap-software.net\/en\/knowledge\/java-web-app\/","og_site_name":"Software development - offshore service | BAP Software","article_publisher":"https:\/\/www.facebook.com\/bap32","article_modified_time":"2025-05-27T08:38:12+00:00","og_image":[{"width":650,"height":406,"url":"https:\/\/cdn.bap-software.net\/2020\/03\/java-web-app-1.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_site":"@bapsoftware","twitter_misc":{"Est. reading time":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/bap-software.net\/en\/knowledge\/java-web-app\/","url":"https:\/\/bap-software.net\/en\/knowledge\/java-web-app\/","name":"How to build a Web Application Using Java - BAP SOFTWARE","isPartOf":{"@id":"https:\/\/bap-software.net\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/bap-software.net\/en\/knowledge\/java-web-app\/#primaryimage"},"image":{"@id":"https:\/\/bap-software.net\/en\/knowledge\/java-web-app\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.bap-software.net\/2020\/03\/java-web-app-1.jpg","datePublished":"2020-03-23T04:53:05+00:00","dateModified":"2025-05-27T08:38:12+00:00","description":"Java is a programming language used in the development of web applications, desktop applications, and Android applications.This article is for those who...","breadcrumb":{"@id":"https:\/\/bap-software.net\/en\/knowledge\/java-web-app\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":[["https:\/\/bap-software.net\/en\/knowledge\/java-web-app\/"]]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/bap-software.net\/en\/knowledge\/java-web-app\/#primaryimage","url":"https:\/\/cdn.bap-software.net\/2020\/03\/java-web-app-1.jpg","contentUrl":"https:\/\/cdn.bap-software.net\/2020\/03\/java-web-app-1.jpg","width":650,"height":406,"caption":"java web\u30a2\u30d7\u30ea"},{"@type":"BreadcrumbList","@id":"https:\/\/bap-software.net\/en\/knowledge\/java-web-app\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/bap-software.net\/en\/"},{"@type":"ListItem","position":2,"name":"Knowledge","item":"https:\/\/bap-software.net\/en\/knowledge\/"},{"@type":"ListItem","position":3,"name":"How to build a Web Application Using Java"}]},{"@type":"WebSite","@id":"https:\/\/bap-software.net\/en\/#website","url":"https:\/\/bap-software.net\/en\/","name":"Software development - offshore service | BAP Software","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/bap-software.net\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/bap-software.net\/en\/wp-json\/wp\/v2\/knowledge\/4796","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bap-software.net\/en\/wp-json\/wp\/v2\/knowledge"}],"about":[{"href":"https:\/\/bap-software.net\/en\/wp-json\/wp\/v2\/types\/knowledge"}],"author":[{"embeddable":true,"href":"https:\/\/bap-software.net\/en\/wp-json\/wp\/v2\/users\/10"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bap-software.net\/en\/wp-json\/wp\/v2\/media\/4930"}],"wp:attachment":[{"href":"https:\/\/bap-software.net\/en\/wp-json\/wp\/v2\/media?parent=4796"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bap-software.net\/en\/wp-json\/wp\/v2\/tags?post=4796"},{"taxonomy":"blog-cat","embeddable":true,"href":"https:\/\/bap-software.net\/en\/wp-json\/wp\/v2\/blog-cat?post=4796"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}