وبلاگ بلیان

توسعه وب با Jakarta EE: استفاده از JSP، JSF، MySQL و Apache Tomcat برای ساخت برنامه‌های وب جاوا

Beginning Jakarta EE Web Development : Using JSP, JSF, MySQL, and Apache Tomcat for Building Java Web Applications

معرفی کتاب «توسعه وب با Jakarta EE: استفاده از JSP، JSF، MySQL و Apache Tomcat برای ساخت برنامه‌های وب جاوا» (با عنوان لاتین Beginning Jakarta EE Web Development : Using JSP, JSF, MySQL, and Apache Tomcat for Building Java Web Applications) نوشتهٔ Luciano Manelli و Giulio Zambon، منتشرشده توسط نشر Apress در سال 2020. این کتاب در 407 صفحه، فرمت pdf، زبان انگلیسی ارائه شده است. «توسعه وب با Jakarta EE: استفاده از JSP، JSF، MySQL و Apache Tomcat برای ساخت برنامه‌های وب جاوا» در دستهٔ برنامه‌نویسی قرار دارد.

Start building Java-based web applications now, even if you’re a complete newcomer to Java. Comprehensive and example-driven, this book is all you need to develop dynamic Java-based web applications using JSP, connect to databases with JSF, and put them into action using the popular open source Java web server, Apache Tomcat. Beginning Jakarta EE Web Development is a comprehensive introduction to building Java-based web applications using JSP, JSF, MySQL, and the Apache Tomcat web application server. Other APIs including JSON, JSTL, and XML parser are covered along the way. Key concepts are made easy to grasp with numerous working examples and a walk-through of the development of a complete ecommerce project. This book is written for professionals by practicing Java web application professionals and experts. What You Will Learn Build Java-based web applications using JSP and JSF with Eclipse Jakarta EE Configure your database with MySQL Define XML documents for your applications Use the Apache MyFaces APIs to create JSF applications Integrate and implement JSF and JSP together Build an online ecommerce web application Who This Book Is For Programmers new to programming in Java and programming in general. Table of Contents 5 About the Authors 11 About the Technical Reviewer 13 Introduction 14 Chapter 1: Introducing JSP and Tomcat 15 Installing Java 18 What About Linux and macOS? 21 Java Test 23 Installing Tomcat 25 What About Linux and macOS? 28 Introduction to HTML 29 What Is JSP? 37 Viewing a JSP Page 37 Hello World! 39 Installing MySQL 43 What About Linux and macOS? 51 Installing Eclipse 53 What About Linux and macOS? 59 Eclipse Test: JSP in a New Web Project 60 Listing the HTML-Request Parameters 65 Summary 67 Chapter 2: JSP Elements 68 Introduction 68 Scripting Elements and Java 69 Scriptlets 70 Expressions 70 Declarations 70 Data Types and Variables 71 Objects and Arrays 73 Operators, Assignments, and Comparisons 74 Selections 76 Iterations 77 Implicit Objects 79 The application Object 79 Example: Using an Attribute to Enable and Disable Conditional Code 80 The config Object 81 The exception Object 81 The out Object 83 The pageContext Object 85 The request Object 86 More on Request Parameters and Client Info 86 Example: Listing the Headers 88 Example: Reading the Request Body 90 The response Object 93 The session Object 93 Directive Elements 95 The page Directive 95 The include Directive 99 The taglib Directive 99 Summary 100 Chapter 3: JSP Application Architectures 101 The Model 1 Architecture 101 The Model 2 Architecture 102 E-bookshop 103 E-bookshop’s Structure 104 The E-bookshop Home Page 109 The E-bookshop Servlet 112 More on E-bookshop 117 Summary 121 Chapter 4: Databases 122 DBMS 123 Structured Query Language 124 INSERT 125 UPDATE 125 DELETE 125 SELECT 126 Introducing eshop application 127 Entities and Operations 127 Product Categories 127 Books 128 Shopping Cart 128 Order 128 Creating MySQL Schema and Tables 129 MySQL/Tomcat Test 143 Database Architecture 147 Summary 149 Chapter 5: Eshop Application 150 A Better Online Bookshop 150 Importing Eshop WAR File into Eclipse 151 The Customer Interface 152 The E-shop Architecture 154 The Model 154 The Controller 155 Servlet Initialization 155 Request Handling 158 The View 158 The E-shop Database Access 159 Connecting to the Database 160 Accessing Data 161 The executeQuery Method 162 The executeUpdate Method 164 Transactions 165 The E-shop Data Model 166 Summary 171 Chapter 6: JSP in Action 172 JSP Standard Actions 172 Actions: forward, include, and param 173 Action: useBean 177 Actions: setProperty and getProperty 180 Actions: element, attribute, and body 184 Action: text 185 Actions: plugin, params, and fallback 185 Comments and Escape Characters 186 JSP’s Tag Extension Mechanism 186 Bodyless Custom Actions 187 Step 1: Define the Tag Handler 187 Step 2: Define the TLD 190 Step 3: Use the Custom Action 192 Bodied Custom Actions 193 Step 1: Define the Tag Handler 193 Step 2: Define the TLD 195 Step 3: Use the Custom Action 196 Tag Files 196 Bodyless Tag 196 Bodied Tag 199 The tag Directive 200 The attribute Directive 201 The variable Directive 202 JSTL and EL 204 JSP Expression Language 205 EL Expressions 205 Using EL Expressions 206 JSP Standard Tag Library 210 The Core Library 212 c:out, c:set, and c:forEach (and fn:length) 212 c:if, c:choose, c:when, and c:otherwise 214 c:catch, c:remove, and c:url 215 c:import, c:redirect, and c:param 216 c:forTokens 216 The i18n Library: Writing Multilingual Applications 217 fmt:setLocale, fmt:setBundle, fmt:setMessage, and fmt:param 217 fmt:bundle, fmt:setTimeZone, and fmt:timeZone 221 fmt:parseNumber and fmt: formatNumber 222 fmt:ParseDate, fmt:formatDate, and fmt:requestEncoding 223 Summary 225 Chapter 7: XML and JSP 226 The XML Document 228 Defining Your Own XML Documents 230 XML DTDs 230 XML Schemas 231 Occurrence Constraints 233 Data Types 234 Simple Types 237 Complex Types 240 Validation 241 Using JSP to Validate XML Against a DTD 242 Using JSP to Validate XML Against a Schema 247 JSTL-XML and XSL 248 XPath 249 An XPath Example 253 x:parse 256 What About JSON? 257 JavaScript 257 Parsing JSON 257 XSLT: Transformation from One XML Format to Another 262 XSLT: Transformation from XML to HTML 264 XSL Transformation: Browser Side vs. Server Side 266 Browser-Side XSL Transformation 266 Server-Side XSL Transformation 267 x:transform and x:param 271 JSP in XML Syntax 272 What About Eshop and the XML Syntax? 276 Summary 282 Chapter 8: JavaServer Faces 2.3 283 The simplef Application 284 The simplefx Application 291 The JSF Life Cycle 293 Event Handling 296 The JSF Tag Libraries 297 The html Library 297 The h:select* Elements 299 The core Library 304 Ajax 306 f:ajax 310 The facelet Library 314 The templ Application 315 The composite Library 324 Some Examples 326 Summary 331 Chapter 9: JSF and Eshop 332 eshopf 332 The Top Menu 333 The Left Menu (Part 1) 335 The Shop Manager 337 The Left Menu (Part 2) 339 The Checkout Page 340 web.xml 341 Using and Creating Converters 344 Writing the Converter in Java 346 Registering the Converter with the Application 348 Using the Converter 349 Using and Creating Validators 349 Built-In Validators 350 Application-Level Validation 351 Custom Validators 352 Validation Methods in Backing Beans 355 Creating Custom Components 356 Component 358 Renderer 359 Tag 363 Inline Renderer 367 faces-config.xml 369 Summary 369 Chapter 10: Conclusion 370 The eshop Application 370 What Happens When the Application Starts 373 Handling Requests for Book Selection and Book Search 377 Displaying the Book Details 378 Managing the Shopping Cart 380 Accepting an Order 382 Providing the Payment Details 383 The eshopx Application 383 Style Sheet 385 web.xml 386 JSP Documents 388 Custom Tags and TLD 391 The eshopf Application 394 web.xml and context.xml 396 Style Sheet 398 JSP Documents 399 Java Modules 400 Tomcat 403 Directory Structure 404 conf 405 lib 405 logs 405 webapps 405 work 406 Application Deployment 406 What About TomEE? 408 Summary 409 Index 410 Start Building Java-based Web Applications Now, Even If You’re A Complete Newcomer To Java. Comprehensive And Example-driven, This Book Is All You Need To Develop Dynamic Java-based Web Applications Using Jsp, Connect To Databases With Jsf, And Put Them Into Action Using The Popular Open Source Java Web Server, Apache Tomcat. Beginning Jakarta Ee Web Development Is A Comprehensive Introduction To Building Java-based Web Applications Using Javaserver Pages (jsp) Using Jakarta Server Pages, Javaserver Faces (jsf) Using Jakarta Server Faces, And The Apache Tomcat Web Application Server. Other Apis Including Json And The Xml-based Job Specification Language (jsl) Are Covered Along The Way. Key Concepts Are Made Easy To Grasp With Numerous Working Examples And A Walk-through Of The Development Of A Complete Ecommerce Project. This Book Is Written For Professionals By Practicing Java Web Application Professionals And Experts. What You Will Learn Build Java-based Web Applications Using Jsp And Jsf With Eclipse Jakarta Ee Use The New Jakarta Server Faces Apis To Create Jsf Applications Work With The New Jakarta Server Pages Apis To Create Jsps Integrate And Implement Jsf And Jsp Together Build An Online Ecommerce Web Application Along The Way Who This Book Is For Programmers New To Programming In Java And Programming In General.
دانلود کتاب توسعه وب با Jakarta EE: استفاده از JSP، JSF، MySQL و Apache Tomcat برای ساخت برنامه‌های وب جاوا