Section 7. JSP and Java Bean

The basic concept of Java Bean and the use of Bean in JSP In the process of software development, business logic and presentation layer should be separated as far as possible, so as to achieve complete decoupling, which is the basic concept of software layered design. In JSP, Java beans are often used to realize the core business logic, ...

Posted on Fri, 19 Nov 2021 09:35:16 -0500 by heybret

Servlet realizes file upload and download

Servlet realizes file upload and download For file upload, the browser submits the file to the server in the form of stream during the upload process. It is troublesome to directly use Servlet to obtain the input stream of the uploaded file and then parse the request parameters. Therefore, the file upload component of apache's open source tool ...

Posted on Sat, 23 Oct 2021 06:46:58 -0400 by Smicks

Java Web Technology: Tomcat, servlet

catalogue Tomcat:web server software Servlet: an applet running on the server side   Implementation principle of Servlet Life cycle method in Servlet init (create): execute only once service: execute multiple times @WebServlet annotation Architecture of servlet http: Hypertext Transfer Protocol Request message data format Respon ...

Posted on Wed, 13 Oct 2021 09:30:14 -0400 by Jeff4507

Three Minutes Learn Java File Upload

Today, someone in the group happened to ask about Java file upload. Originally, this was the knowledge point inside Java, but my main focus now is on the JS part. But it's not a hassle anyway, I'll just post a post to talk about the basic implementation of Java file upload. Say nothing but start. The first step is to create a new blank web ...

Posted on Mon, 11 Oct 2021 12:02:51 -0400 by mubeena

IDEA creates maven project + spring MVC framework to complete the same functions as servlet

1, Create maven project First create the maven project.   Then set the project name and configuration address.   Finally, the project is created successfully. The file is shown below.   2, Add dependency Find the tag in pom.xml and add the dependency to it.   The code is as follows. <dependency> <groupId>junit< ...

Posted on Sun, 03 Oct 2021 16:41:01 -0400 by SiMiE

Talk about spring MVC

preface Only a bare head can make it stronger. The text has been included in my GitHub selected articles. Welcome to Star: https://github.com/ZhongFuCheng3y/3y This spring MVC has been urged for a long time. This time, because of the integration of the system, it is very busy. I returned to the company early this weekend. If you pay a ...

Posted on Sun, 24 May 2020 22:32:06 -0400 by buzzed_man

Using AJAX in struts 2

1, Output as stream using HttpServletResponse Use the getWriter() method of HttpServletResponse to output PrintWriter directly in Action; public class AjaxPrizeKindsAction extends ActionSupport { private Logger logger = Logger.getLogger(AjaxPrizeKindsAction.class); private IPrizeKindInfoService prizeKindInfoService; @Override public Stri ...

Posted on Sat, 02 May 2020 05:15:23 -0400 by bloom

Java Web (Struts framework) three ways for Struts to create Action

This series of blog posts has been uploaded to github based on the same project Portal Java Web (Struts framework) three ways for Struts to create Action Portal The core configuration of struts.xml, the dynamic method call and the processing of result set Portal The configuration of Java Web (struts 2 Framework) Log4j and the solution to the ...

Posted on Fri, 24 Apr 2020 11:53:55 -0400 by Dark-Elk

Java single application - Architecture Mode - 03. Design mode - 15. Command mode

Original address: http://www.work100.net/training/monolithic-architecture-design-patterns-command-pattern.htmlMore tutorials: Beam cloud - free course Command mode Serial number Chapter in text video 1 Summary - 2 Realization - Please refer to the navigation above for reading 1. overview Command Pattern is a data-driven design patter ...

Posted on Fri, 13 Mar 2020 07:22:05 -0400 by jwilh

Basic learning of struts 2 Framework -- basic introduction

Overview of Struts What is Struts Struts2 is a Web application framework based on MVC design pattern, which is essentially a servlet. In MVC design pattern, Struts2 is used as controller to establish data interaction between model and view. Struts 2 is the next generation product of struts. It is a ...

Posted on Tue, 18 Feb 2020 04:41:11 -0500 by adamgram