The general pop-up page (compatible with IE and firefox) can disable the control width and height and mask the background.

General pop-up page (compatible with IE and firefox)Note:1. openWindows (width, height) ---- open the function called by the pop-up layer to control the width and height of the layer2. hiddenWindows () ---- close the function called at the pop-up

Access servlet sharing in Struts2

I. access or add request/session/application attributes Copy codeThe Code is as follows:Public String scope () throws Exception { ActionContext ctx = ActionContext. getContext (); Ctx. getApplication (). put ("app", "Application Scope"); // Add the

Solution: jsp cannot submit content in nicEdit

In the google process, I saw this article ("NicEdit cannot get textarea value under JQuery") Get an inspiration, that is, I can use js to read the content in the nicEdit Rich Text Editor, grant the content to textarea and then submit the form. Code:

A simple example of a JSP custom tag

tld

Using custom tags in JSP can achieve this purpose. In fact, all the frameworks we know are basically implemented in the form of custom tags.By using custom tags, We can display complex logic on pages with simple tags. Next we will implement a very

JSP request (return String) usage example

1. JSP code:Copy codeThe Code is as follows:Document: indexCreated on:, 12:45:43Author: lucifer-- %>Http://www.w3.org/TR/html4/loose.dtd> JSP Page Get Scheme:Get Protocol:Get Remote Address:Get Remote Host:Get Server Name:Get Server Port:Get

JSP Chinese Character Processing code

There are a basket of online processing methods. The following describes two effective solutions I have used.1. Compile a string processing function for the program, save it with a static file, and include it in the JSP page for processing Chinese

Add, delete, modify, and query implementation code in hibernate

First, let's first look at the increment. in SQL, the increment is insert, that is, insert. In hibernate, we only need to manipulate an object for sava and then commit the transaction, the insert function can be implemented. Let's take a look at the

A garbled solution for jsp include files

Generally, I use the method to include this file. The main reason is that the contained page will be compiled into a file at compilation, the variables can be common to each other, while the method is compiled separately, and the variables cannot

Create and delete cookies in Java

// Write cookieCookie cooki;Cooki = new Cookie ("bbs_0001", String. valueOf (num); // user IDCooki. setMaxAge (60*60*24*365); // cookie timeCooki. setPath ("/"); // you can create cooki in different functional Paths Based on your needs.Response.

How to integrate fieldError with struts2 spring

Problem: The verification framework is used. After the jsp page fails to be verified once, the verification t page cannot be displayed no matter whether the input is correct or not.Cause: When spring creates an action object, singleton is the

Jsp Verification Code Generation

Call method: Use Image labels on the jsp page to directly call the following tag code: you only need to send the code to the area where the verification code is displayed)Public static String code =

Code for packaging and downloading multiple JSP files

Now I want to paste the main code of this program for your reference:Java.net .*,Java. text .*,Java.util.zip .*,Java. io. * "%>Static Vector expandFileList (String [] files, boolean inclDirs ){Vector v = new Vector ();If (files = null) return v;For (

The page is not automatically closed after the download is complete.

The page is not automatically closed after the download is complete!The following code can be used for download. However, when the download is complete, the window is not automatically closed. Why?Download. jspCopy codeThe Code is as follows://

Master JDK1.5 enumeration types

As a New Keyword introduced by Sun, Enum looks like a special class. It can also have its own variables, define its own methods, and implement one or more interfaces. When declaring an enum type, we should note that the enum type has the following

Page 1/3 of jsp Hibernate getting started

For example:Copy codeThe Code is as follows:HibernateTest. javaImport onlyfun. caterpillar .*;Import net. sf. hibernate .*;Import net. sf. hibernate. cfg .*;Import java. util .*;Public class HibernateTest {Public static void main (String [] args)

Java SOAPHEADER web service

C # WEB SERVICEhttp: // www.jb51.net/article/16768.htm returned in JSON formatHere I use axis to create a class package. First download the axis compressed package, decompress it, and put axis under webapp. If it can be run, it will be OK.C # Can I

Use JSP to generate static pages

Please refer to the main principle of http://blog.hunan2s.com/article.asp? Id = 233After debugging, it is successful .. AhAdd the source code ..JDK 1.5 + ECLIPSE + TOMCAT 5.0.28 + MYSQL 5.0Database TEST, table name newsField: id int auto-increment,

How to recompile the java class in weblogic 8.1 without restarting the server

Recompile jsp without restarting the service period, but the class is required.Therefore, you need to set the following parameters ::Add the following sentence to the weblogic. xml file (marked in red)-1 ccbroot However, the disadvantage is that it

Detailed configuration of JSP dynamic website development environment page 1/2

The following uses Tomcat as the JSP Engine and uses Tomcat, Apache, and IIS as the three Web servers to describe how to build a JSP running environment.I. Introduction to related software1. J2SDK: the software development tool of Java2, which is

Analysis of JNDI binding of Hibernate

Hibernate's JNDI name binding is implemented in the net. sf. hibernate. impl. SessionFactoryObjectFactory program. Let's analyze the process of binding JNDI to Hibernate:We get SessionFactory and write code like this:Configuration conf = new

Total Pages: 1800 1 .... 887 888 889 890 891 .... 1800 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.