Spring MVC parameters and return values

Catalog One with jsp Two parameter binding Common types Default supported parameter types Simple data type binding Request garbled processing Custom Converter Three methods return value Return to ModelAndView Return to void Return string Reference resources One with jsp You can return String ...

Added by donbonzo on Sun, 27 Oct 2019 10:02:46 +0200

Implementation of automatic comment on csdn blog post

text Let's use java code to crawl the csdn blog site, and then automatically comment. This wave of operation can be said to be quite coquettish. Let's go to the code. The first step is the login code, which is a large part of the Internet. The code uses the JSP dependency package to parse html to get the corresponding elements, which is equival ...

Added by betman_kizo on Mon, 21 Oct 2019 12:11:57 +0300

Cookie overview and application of Java Web

What is Cookie Cookie technology is a solution to keep session tracking on the client side. II. Creation of Cookie object Cookies can be created through the constructor of the javax.servlet.http.Cookie class. Cookie cookie = new Cookie("username","Hum's blog"); The first parameter specifies the proper ...

Added by orlandinho on Sat, 19 Oct 2019 21:21:47 +0300

After page office opens word file online, it can save document and save data separately.

PageOffice's storage mechanism is to save data first and then files, so clicking the Save button once can save both data and files at the same time. But there is a need to save files or data separately. The following is a demonstration of the implementation process. I. Core Code poCtrl.setSaveDataPage("SaveData.jsp");//Set up the page to save ...

Added by Highlander on Sat, 12 Oct 2019 06:55:02 +0300

Shiro Integrated SSM Based on Dynamic URL Privilege Management

This case is based on an extension of the previous demo. So the database table, in Shiro Integrated SSM Based on URL Privilege Management (I) The beginning is consistent. If the suggestion of the last demo operation is re-imported, avoid problems. This time, it is not achieved through fixed annotations written in the method, but through flexib ...

Added by Jim R on Fri, 11 Oct 2019 10:58:49 +0300

Java Web implements automatic login using Filter

thinking Use cookie to store account and password, use Filter to intercept, and get account and password from cookie. If the user wants to log out and no longer want to use automatic login, set the cookie's validity to 0. Browsers can view Cookies. They can't store the plaintext of accounts and passwords directly. When using Cookies to store ...

Added by grungefreak on Sun, 06 Oct 2019 07:45:31 +0300

Struts completes input verification manually based on validateXxx method

One view 1registForm.jsp <%@ page contentType="text/html; charset=GBK" language="java" errorPage="" %> <%@taglib prefix="s" uri="/struts-tags"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html x ...

Added by Maugrim_The_Reaper on Thu, 03 Oct 2019 17:24:57 +0300

jsp Technology Development--jsp Built-in Object

1. Overview of built-in objects jsp files automatically generate and declare objects when they are translated into other corresponding servlet files. We can use them directly in jsp pages, but not in global variables. jsp's built-in objects are: application, config, exception, out, page, pageContex ...

Added by rach123 on Mon, 23 Sep 2019 06:36:02 +0300

JSP Form Processing

Links to the original text: https://my.oschina.net/u/3389779/blog/888878 When we browse a web page, we often need to submit information to the server and let the background program pro ...

Added by RDKL PerFecT on Tue, 17 Sep 2019 09:15:54 +0300

SpingMVC-exception handling

SpingMVC Exception Handler Annotation test First create a new test method in Spring MVCTest. Java @RequestMapping("/testExceptionHandlerExceptionResolver") public String testExceptionHandlerExceptionResolver(@RequestParam("i") int i){ ...

Added by timcclayton on Sat, 14 Sep 2019 14:38:58 +0300