Home>Network programming tutorial> Java tutorial
All ASP tutorial ASP tutorial ASP.NET tutorial PHP tutorial JSP tutorial C#/CSHARP tutorial XML tutorial Ajax tutorial Perl tutorial Shell tutorial Visual Basic tutorial Delphi tutorial Mobile development tutorial C/C++ tutorial Java tutorial J2EE/J2ME Software engineering
Java tutorial
  • Solution to how to serialize parent class properties into JSON format in Struts2

    Solution to how to serialize parent class properties into JSON format in Struts2

    Since the project front-end uses Extjs4, list paging needs to return three parameters: totalCount (total number of records), start (starting position), and limit (number of items per page). Since there will be many grids in the project that need paging, I
    2024-11-19
  • Let’s start with building a Struts2 development environment

    Let’s start with building a Struts2 development environment

    Struts2Struts2 is developed based on WebWork2. Like struts1, Struts2 also belongs to the MVC framework. But one thing everyone needs to pay attention to is that although the difference in names between Struts2 and struts1 is not very big, the coding style
    2024-11-19
  • Result set type in Struts2

    Result set type in Struts2

    1. Each action method returns a String type value. The value returned by Struts in a request is determined by this value. 2. In the configuration file, the configuration of each action element must have a result element, and each result corresponds to the
    2024-11-19
  • Struts2 development basic configuration and type conversion

    Struts2 development basic configuration and type conversion

    1. Default values ​​in Action configuration<package name="csdn" namespace="/test" extends="struts-default"><action name="helloworld" method="execute" ><result name="success" "
    2024-11-19
  • 3 XML parsing DOM methods, SAX methods and StAX methods under Java

    3 XML parsing DOM methods, SAX methods and StAX methods under Java

    Let’s briefly talk about the first three methods: DOM method: Personal understanding is similar to .net’s XmlDocument, which is not efficient when parsing, takes up memory, and is not suitable for parsing large XML; SAX method: event-based parsing, when p
    2024-11-19
  • Detailed explanation of type conversion in Struts2

    Detailed explanation of type conversion in Struts2

    1. The significance of type conversion For an intelligent MVC framework, it is inevitable to implement type conversion. Because the request parameters of B/S (browser/server) structure applications are sent to the server through the browser, these paramet
    2024-11-19
  • About internationalization and OGNL expression language

    About internationalization and OGNL expression language

    1. Prepare resource files for internationalization. The naming format of resource files is as follows: baseName_language_country.propertiesbaseName_language.propertiesbaseName.properties where baseName is the basic name of the resource file. We can custom
    2024-11-19
  • 40 questions about JAVA classic algorithms (super practical version)

    40 questions about JAVA classic algorithms (super practical version)

    [Procedure 1] Title: Classical problem: There is a pair of rabbits. They give birth to a pair of rabbits every month from the third month after birth. After the rabbit grows to the fourth month, it gives birth to a pair of rabbits every month. If the rabb
    2024-11-19
  • Regarding overall refresh and partial refresh of frameset window

    Regarding overall refresh and partial refresh of frameset window

    In projects, we often encounter page segmentation, the most common main interface of a system or website. The main page is divided into system introduction at the top, author introduction at the bottom, system function menu on the left, and the interface
    2024-11-19
  • About the method of struts returning object json format data

    About the method of struts returning object json format data

    If you want to return the json data of an object in struts, copy the code by definition as follows: <action name="getUserByName" method="getUserByName"><result name="success" type="json">userInfo</res
    2024-11-19
  • JSP page pageEncoding and contentType attributes

    JSP page pageEncoding and contentType attributes

    JSP needs to be "encoded" twice. The first stage will use pageEncoding, the second stage will use utf-8 to utf-8, and the third stage is the web page produced by Tomcat, using contentType. Regarding the difference between the pageEncoding and co
    2024-11-19
  • How to call Alipay interface using struts

    How to call Alipay interface using struts

    1. Useless packages with key ACTION codes can be deleted. The copied code is as follows: package com.hzdracom.alipay.action;import it.sauronsoftware.base64.Base64;import java.io.IOException;import java.io.PrintWriter;import java.net.HttpURLConnection;impo
    2024-11-19
  • Execution order of free blocks in Java

    Execution order of free blocks in Java

    Free blocks in Java are divided into static free blocks and non-static free blocks. The execution time of non-static free blocks is: before executing the constructor. The execution time of the static free block is: executed when the class file is loaded.
    2024-11-19
  • Thoughts about the singleton pattern triggered by review

    Thoughts about the singleton pattern triggered by review

    I discovered a situation during code debugging, that is, when I checked the connections of memcached, I found that it was always maintained at about 100. Of course, this seems to be no problem, because memcached has 1024 connections by default. But what I
    2024-11-19
  • How to call .dll files in Java

    How to call .dll files in Java

    Below is a screenshot of the JNative component jnative.sourceforge.net/ Go here to download the JNative open source project. I downloaded the 1.3.2 decompression JNative-<st1:chsdate isrocdate="False" islunardate="False" day="3
    2024-11-19