serialversionuid

the use of java in xmlrpc

We can provide remote webservice interface the way, the same can also be achieved using xmlrpc, and the development of simple. There are many ways to achieve the following means to achieve using httpservlet Need to use a jar: xercesImpl.jar xmlrpc-2.

Some comments of RMI

1.About Stub: java.rmi.server.RemoteStub is a class that implements the Serializable interface. The RMI serialization mechanism knows that whenever a remote server is "sent" over the wire, the server object should be replaced by a stub that

The interpretation of serialVersionUID in Java

The interpretation of serialVersionUID in Java serialVersionUID role: Serialized version in order to maintain compatibility, the upgrade in the version deserialize the object remains unique. There are two ways to generate: One is the default 1L, such

Memcached object cache implementation focus

Memcached, we often need to customize some of the data, so a simple Key-Value format needs can not be completed, so we need to value this part of the object-oriented, while memcache is not a traditional object to be stored inside, with the tools it n

Industry Applications

A, beaninfo 1. package demo2.beaninfo; import java.awt.Color; import java.awt.Cursor; import java.awt.Point; import java.awt.event.MouseEvent; import java.awt.event.MouseMotionListener; import javax.swing.BorderFactory; import javax.swing.JLabel; imp

Hibernate dynamic mapping table (reproduced)

Reproduced http://fengsky491.iteye.com/blog/964632 Documents a long time ago, today's special records First, define naming strategies: import java.util.Locale; import org.hibernate.cfg.DefaultNamingStrategy; import org.hibernate.cfg.NamingStrateg

Unused on the Entity field chickens lay eggs

. 1 entity public class Image extends BaseEntity { /** * serialVersionUID. */ private static final long serialVersionUID = -9072699651769160951L; private String userId; private String title;// Title private String sourcePath;// Picture image path pri

Download function, when the user clicks to download, pop-up "Save, Cancel" box, if a user without any click, point, the server will not hold live out.write the servlet

package com.demo; import java.io.IOException; import java.io.OutputStream; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.ht

Use EasyMock test Servlet

Usually we can come through the program junit unit testing, but unit testing code often relies on other units, such as running a test HttpServletRequest processor code must start a servlet container. All of these questions, you can use Mock Object to

"HouseKeeper" java.lang.NullPointerException

Quote Today, the application starts, the page a few clicks reported Exception in thread "HouseKeeper" java.lang.NullPointerException; more times will be repeated this bug, and the Internet to find a more wonderful solution: package com.spro

hibernate annotation-to-many delete cascade

hibernate annotation-to-many cascade delete, the problem should be troubled by a lot of people, and I also was troubled for a long time, why not help us hibernate cascade delete it. Today finally solve this problem, the following example to everyone, cert

Page shows the pictures ftp

/** * <p> Project Name : SAIC inkaNet project </p> * <p> Company : Neusoft Group Co., Ltd. </p> * <p> Department : AVNC&IS Division, a domestic business </p> * <p> Copyright : Copyright (c) 2011</p>

Serializable.serialVersionUID and serialver

Previously created, but also been announced to the thousands of people, starting up, the time format and then finishing '''Serializable, serialVersionUID, and serialver''' = Number of requests = (1) transmitted through the net

webwork / Struts 2 to achieve multi-file upload without refresh page

This demo is implemented using webwork, and in principle the same as with Struts 2. Multi-file upload and page refresh no effect, with iframe technology without refresh the page. Upload is successful, the success of the background to the front desk upload

[Transfer] flashing tray

package com.msg; import java.applet.Applet; import java.applet.AudioClip; import java.awt.AWTException; import java.awt.Image; import java.awt.MenuItem; import java.awt.PopupMenu; import java.awt.SystemTray; import java.awt.TextArea; import java.awt.

Use commons-fileupload iframe without refreshing the page to achieve multi-file upload

The use of commons-fileupload-1.2.2.jar and commons-io-2.0.1.jar two components. Background UploadServlet.java: package upload; import java.io.File; import java.io.IOException; import java.io.PrintWriter; import java.util.Iterator; import java.util.List;

JBPM4.3 integrated summary of three custom user table

JBPM4.3 summarize three (2010-05-05 11:54:56) Reproduced Tags: it Category: jbpm 2.5 Custom User Table Integration 2.5.1 Jbpm4 provides a realization of the interface 1.interface User 2.Interface Group 3.Interface GroupMember 4.Interface IdentitySession W

Struts2 how to use the service in the valueStacke

After the program starts interceptor configuration, access StrutsUtil. This can be used anywhere. StrutsUtil.getValue (key); / ** * Interceptor * / public class StrutsInterceptor implements Interceptor { / ** * Serialization UID * / private static final l

jpa multi-table queries and SQL statements associated with

@ Entity @ Table (name = "goods") public class Goods { private String id; private String name; private String description; private Double price; private String yuanjia; private Date createDate; private Date modifyDate; .....................

expansion of the source code in ExtractorJS heritrix

The following is heritrix in the expansion of the JS in the time to write their own extensions can refer to this source code or value on the html or css extension source code /* Copyright (C) 2003 Internet Archive. * * This file is part of the Heritrix we

heritrix extended source in ExtractorJS

The following is heritrix in the expansion of the JS, extend the time to write their own can refer to this source code or value of html or css extension source code /* Copyright (C) 2003 Internet Archive. * * This file is part of the Heritrix web crawler

S2SH integration of cascade delete

Cascade delete Recently busy s2sh project implementation back-office functions, back-office functions has been basically achieved, and today the weekend, nothing else, I am writing to you sun drying cascade delete, when writing the words before being

S2SH integration changes

S2SH modify modify operation integrate In fact, I do not think this is the cascading changes, it only involves changes to a table to another table not involved, I think the cascade operation is related to the operation of multiple tables. Here, I rel

Flex and servlet communication (Httpservice)

Prior to flex and java communication has been used remoteobject, today tried it Httpservice, specific method, please read on: 1 Open the eclipse, the new web project engineering, named servletTest 2 Add the following code inside the web.xml file <servl

Intent to pass a collection of problems and thinking

So just contact with android soon pass the data is not very intent to know is hereby recorded in a memorandum and also hope to help the novice (at least I experienced veteran should be able to say it, huh, huh... To claiming credit for the !) In addition,

The Ajax framework jquery garbled solution

1. The following code for the server-side access to request information Servlet, real time may be used struts, etc. package com.adu; import java.io.IOException; import java.io.PrintWriter; import java.net.URLDecoder; import javax.servlet.ServletException;

JSON Learning III -> Online Authentication (via)

Server-side: Eclipse + tomcat / * @ Author: LKP * Company: mobiscloud * 2011-5-16 * / public class JSONDemoServlet extends HttpServlet { / ** * * / private static final long serialVersionUID = 12323L; private List <User> list; / ** * Processing the

Snake Java implementation of a simple, useless object-oriented thinking. Behind the implementation of a useful object-oriented

package snack; import java.awt.Color; import java.awt.Graphics; import java.awt.Point; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import java.util.LinkedList; import java.util.Random; import javax.swing.JFrame; import javax.sw

Detailed ----> input validation struts2

Detailed ----> input validation struts2 In struts2, we can show all the methods of action on the action or the development of verification methods for verification. Struts2 validation for the input provides two implementations: 1, the use of hand-writt

Jdbc Hibernate with the original gap between the bulk insertion

Written from a post long time ago. Purposes only to see the native Jdbc Hibernate and the gap in the end when the bulk insert how many less. Or respectively, 1W, 10W, 50W, 100W as a test. If another large amount of data that have suggested their own way t

Introduction to Hibernate Notes (8) tree map

Introduction to Hibernate Notes Tree Map package eg; import java.util.*; import javax.persistence.*; @Entity @Table(name = "t_emp") public class Employee implements java.io.Serializable { private static final long serialVersionUID = -9037916598216851263L;

Jtree increase in node

ublic class JTreeDemo extends JFrame implements ActionListener, TreeSelectionListener { private static final long serialVersionUID = 3604526229381602695L; private JButton btnAdd = new JButton ("Add node"); private JButton btnRemove = new JB

Introduction to Hibernate Notes (7) the primary key

Introduction to Hibernate Notes Joint primary key package eg; public class DomainPK implements java.io.Serializable { private static final long serialVersionUID = 5645927133748173665L; private Integer id0; private Integer id1; // getter,setter @Override p

hibernate one-way foreign key association

hibernate one-way foreign key association One, two-way association Associated in one way, based on the association also held another object Object Second, the scene Monogamy III, R CREATE TABLE `wife` ( `Id` int (11) NOT NULL AUTO_INCREMENT, `Name` varcha

Log4j Configuration and Application

1, the preparation of log4j configuration file (such as log.config): # Set root category priority to INFO and its only appender to CONSOLE. # Log4j.rootCategory = INFO, FILE log4j.rootCategory = INFO, CONSOLE, LOGFILE # Set the enterprise logger category

Tomcat7 injected in the Spring of JSF2 BUG

Such as the title, if you use the original faces-conf.xml can be achieved in a statement ManageBean Spring injection. But the use of Annotion not be achieved. @ManagedBean(name="messageBean") @SessionScoped public class MessageBean implements Seriali

Detailed Hibernate (a )------->> Getting Started

Detailed Hibernate (a )------->> Getting Started Hibernate is an open source object-relational mapping framework, it had a very lightweight JDBC object package so that Java programmers can use arbitrary object programming thinking to manipulate the

struts1 file uploads

In struts1 and 2, respectively, commons-fileupload component of the packaging, make the file upload operation more convenient. This article explains how to use struts1 upload files. Steps: Prepare jsp page 1 2, in the form jsp form to configure an ActionF

Spring from the source code to understand dependency injection and dynamic agent

Entities using the DAO layer to operate: the DAO implementation class, logging implementation class, business class dependency injection. Many beginners may ask why you want to use AOP to achieve management of logs and things, the following example will e

XML_RPC user authentication instance (advanced)

Server-side: Create a web project, the project name XML_RPC, import other than the 4 client jar package Business logic classes: package demo.xmlrpc.action; public class Calculator { public int add(int i1, int i2) { return i1 + i2; } public int subtract(in

Java using threads to achieve the effect with a rolling Label Label

import java.awt.Graphics; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; /** * Java Label Label implemented with threads with a scrolling effect * @author Wudoumi < Please keep the author and the source of reprodu

java serialization (to)

When we need a JAVA object serialization need to implement Serializable interface. This interface is just a tag interface, you really do not need to implement some method, because there is no way this interface. He is simply to tell the default JAVA

Flex.Spring Integration: blazeds

Preparation: 1, download blazeds 4.x, Download Address: http://download.macromedia.com/pub/livecycle/blazeds/4_0/blazeds-bin-4.0.0.14931.zip 2, deployment blazeds to tomcat, visit http://localhost:8080/blazeds/messagebroker/amf, blank page, the successful

Extjs interface Swing Style

Extjs let's not much to say We come to a Swing version of imitation Masking effect, shows the progress of loading data Image point to imitation to imitation Europe it! PageBar form code: package org.qianye.pagebar; import java.awt.BorderLayout; import

Struts2 file upload (transfer)

Struts2 using the open source project Apache Jakarta Commons FileUpload and built FileUploadInterceptor file upload interceptor to achieve the required jar package is as follows: commons-logging-1.1.jar freemarker-2.3.8.jar ognl-2.6.11.jar struts2-core-2.

Struts2 parameters used 3 ways to receive

1. With the Action property: In the action which defines the parameters to receive and provide the appropriate setter, getter, and submit the same name of the parameter is not used as a data type conversion. Submit the appropriate ways to get and use

Struts2 interceptor-PreResultListener

PreResultListener interceptor method in the action after the execution result to return before the implementation interceptor. MyAction.java package com.struts2.interceptor; import com.opensymphony.xwork2.ActionSupport; public class MyAction extends

JSF2 and EJB3, JPA2 integration

JSF2 in the application notes, making JSF2 easily with EJB3, JPA2 integration. First, define a business interface, as a local EJB interface: @Local public interface CustomerSessionBeanI { public Customer getById(long id); public List<Customer>

Facebook BigPipe Technology

Application on the web, from html to produce, to the client browser rendering, there are three important components: 1.html generated in the service side 2. Network transmission 3. Browser rendering Html generated in the process, may be used in cache

With cactus, jetty achieve the unit test a servlet class

JUnit is great reputation dry, and presumably learned JAVA as long as people know there is stuff the world is called JUnit. I remember a brother want to learn JUnit on the group shouted: I want to learn JUnit, the most widely used because of JUnit, t
Recent
Recent Entries
Tag Cloud
Random Entries