Spring MVC self study log 04 (Controller and RestFul style)

Controller Controller complex provides the behavior of accessing application program, which is usually realized by two methods of interface definition or annotation definition. The controller is responsible for parsing the user's request and converting it into a model. In Spring MVC, a controller cla ...

Posted by googlehunter on Wed, 29 Jan 2020 19:19:03 -0800

Use of JSP~~JSTL~~Core Label Library~~out/set Labels

Set Label The set tag is used to set values within a range (request, session, or application) or to set property values for an object. The set tag is used in the following format: (1) Use the value attribute to specify the value of a variable within a specific range in the following format: <c ...

Posted by svivian on Tue, 28 Jan 2020 19:28:32 -0800

ssm background processing for uploading photos on wechat applet

The effect of wechat applet 1: Wechat code (2)wxxml <view class="container-body container-gray" style="display:{{showfootertab==0?'block':'none'}}"> <form bindsubmit="evaSubmit"> <view class="group"> <view class="group-header">Problem description</view> <vie ...

Posted by MrPotatoes on Tue, 28 Jan 2020 07:49:47 -0800

Generation of random verification code for jsp login page

Generation of random verification code for jsp login page There is a very strange and especially puzzling problem here, that is, ajax return value, json parsing has always been garbled, what req.responseText gets has always been garbled, which has been done for a long time, but can't be found out. W ...

Posted by jerryroy on Mon, 27 Jan 2020 07:21:00 -0800

Spring Road (22) - spring MVC + bootstrap develop blog system instance (introduce bootstrap and browse blog page)

background What's the background? It's a function and a function directly. Ha ha, brothers are stable. Function realization of browsing blog 1. First, modify the blogView method of the BlogController, and bring the blog list information when entering the browsing blog page @Autowired//Auto assemble ...

Posted by lynwell07 on Mon, 27 Jan 2020 01:16:27 -0800

Spring Road (17) - Configure Spring MVC with annotations

background The previous article details the process of configuring SpringMVC using xml, rather than specifying a Dispatcher Servlet, specifying a container configuration file, and then writing controllers and views. Similar to using annotation configurations, we have a class responsible for specifying ...

Posted by Phirus on Sat, 25 Jan 2020 16:46:23 -0800

Java Web realizes the function of simple registration and login - (Registration)

The registration and login function implemented here is the content of a big assignment after learning java web course. It does not involve any framework technology, but is made up of basic knowledge It is. It's suitable for children's paper that just started to touch the web. ——Home page: ...

Posted by shoppingspree on Wed, 22 Jan 2020 00:32:56 -0800

Filter filter interception mode

There are five intercepting methods for Filter filter. Use annotation to configure the dispatcherTypes property REQUEST: by default, resources directly requested by the browser will be blocked by the filter FORWARD: FORWARD access resources will be blocked by filters INCLUDE: contains access reso ...

Posted by mykmallett on Mon, 20 Jan 2020 22:14:04 -0800

Struts 2 Framework -- the third day

How to deal with struts 2 and how to implement action 1. Attribute driven jsp page: <form action="register" method="post"> //User name: < input type = "text" name = "name" / > < br > //Password: < input type = "password" name = "PWD& ...

Posted by badman on Sat, 18 Jan 2020 08:19:26 -0800

Two cases of Ajax

Case 1: verify whether the registration name is duplicate 1. Create registration page register.html <body> <label for="email">Your login name:</label> <input type="text" id="username" name="username" maxlength=32/> <input type="button" value="Verification" onclick="checkUsername();"/> ...

Posted by MentalMonkey on Sat, 18 Jan 2020 07:30:12 -0800