Enhanced Servlet and JSP security without modifying code

Compiling Servlet and JSP is easy, but we usually face many security problems. Of course, we will add a lot of security code to the program to solve this problem, but adding such security hard code will make the program inflexible and difficult to

Java calls the system's default browser to open the link

Method 1: If (java. awt. desktop. isDesktopSupported () {try {// create a URI instance java.net. URI uri = java.net. URI. create ("http://www.baidu.com/"); // get the current system desktop extension java. awt. desktop dp = java. awt. desktop.

Java Sorting Algorithm (ii) _ Hill sorting, fast sorting, and Merge Sorting

Today, let's talk about sorting in the Java data structure, such as Hill sorting, Merge Sorting, and quick sorting. Shell Sort: the Sort by hill is actually a Sort of specially processed insert. It is Sort by the specified interval increment, so the

Summary of struts2 logon timeout interceptor

Problem domain: the login user has not interacted with the server for a long time. If the operation is performed again, the system prompts "timeout". Please log on again. Solution: session timeout settings and struts interceptor intercept

Javascript event bubbling Mechanism

I learned an event bubbling mechanism today and thought it was a bit problematic. I tested it myself and shared the results with you, which helps you better understand the event bubbling mechanism. For example: Hello After you click "

How to Create an Reusable Components for Your Project

In our daily work, we always write the same code and do it again and again, but how can we create the reusable components for our project and make our code more clearly? In this article we just explain it at the concept side, so please refer the

JobTracker Memory Leak

Two JTCDH4.2.0) OOM problems occurred in the previous phase, leading to an error in the ETL process. Because most of the cluster parameters that were just taken over were default, the CMS related to the JVM parameters of JT was modified, at the same

Four ways to create a Document

1. Read: converted from xml SAXReader reader = new SAXReader (); Reader. setEncoding ("UTF-8 "); Document document = reader. read (new File (strFileName )); Read the xml file to the Document. Convert String document. asXML (); Obtain the

JAVA detects port usage

Sometimes it is necessary to determine whether a local port is occupied. A common method on the internet is: public boolean isPortAvailable(int port) { try { ServerSocket server = new ServerSocket(port); System.out.println("The port

Jvm gc Policy

1 Preface GCGarbage Collect) is the core function of jvm for memory management. It is precisely because it frees java programmers from the hard sea of memory release. Therefore, as a programmer, it is necessary to understand its principles.When I

Summary of the String issue during the Java interview

In the Java interview, I always like a few questions about the String object, such: 1. String s = new String ("abc"); several String objects are created. 2. String s1 = "abc ";String s2 = "";String s3 = s2 + "bc ";String s4 = "a" + "bc ";String s5 =

Use Hibernate Validator to verify Bean Parameters

Bean Validation class library comparison Recently, when I was writing a project, I wanted to add the Bean Property Verification, just as there was a verification for each value in Domain in Grails. However, the workload for writing beautiful data by

General functions of the company's JAVA framework

In the past, when I was in school, I thought that every JAVA Development Company had to build an SSH framework every time it was working on a project. After work, I found that every company had its own framework, if it weren't for SSH or SSI-based

LinkedTransferQueue Learning Guide

Recently, I have been reading open-source projects and found that several projects use the LinkedTransferQueue data structure in different ways. For example, netty, grizzly, xmemcache, and Bonecp. Bonecp also extends a

Simple installation and summary of tomcat

There is no time to record tomcat finished a few days ago and it is relatively idle today. So let's make a brief summary and report an error to tomcat startup: Error occurred during initialization of VM Java/lang/NoClassDefFoundError:

Use of type converter in struts2

Use defatypetypeconverter --------------------------- When a web page transmits a value to the background, only strings can be transmitted. To enable automatic conversion of strings into a class, the background can better process data, you need to

Spring uses BeanNameAutoProxyCreator to automatically create a transaction proxy

The following describes an excellent transaction proxy configuration policy: This Configuration Policy can completely avoid incremental configuration, and all transaction proxies are automatically created by the system. The target bean in the

Implement reusable Ajax components through JSF 2 (1)

BKJIA introduced the Ajax support package to readers and used "Ajax to listen to events and errors in the JSF 2 client processing code ". Today, the BKJIA editor recommends that you use the combination of composite components and Ajax to easily

Configuration of JSP development environment in Windows (1)

JSPJava Server Pages introduced by Sun is a dynamic web page development technology executed on the Server, which is based on Java technology. When executing JSP, you need to set up an engine for compiling JSP Web pages on the Web server. You can

How to select a virtual host service provider that supports JSP

Currently, free home page space is hard to find. Most of them have stopped new registration, and most of the free home pages have many restrictions, such as space, upload, and access. My personal opinion is that when the website is almost completed,

Total Pages: 6206 1 .... 3453 3454 3455 3456 3457 .... 6206 Go to: GO

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.