Notes for Java and jsp Programming

1. when the println () method is used for objects of the String type, if the object is null, null is printed instead of NullPointerException, which may lead to the illusion of reference, subsequent operations on strings may cause problems.2.

Jsp embedded webpage content-iframe

ZZzzz ~ May wind Src: file path, which can be either an HTML file or a text file or an ASP file;Width and height: the width and height of the "picture-in-picture" area;Scrolling: when the specified HTML file of SRC is not displayed in the specified

How to configure virtual hosts in Tomcat5.x

Author: Wang Shuli Reason:Developed a WEB project for a period of time (Based on jsp (preferred for SUN Enterprise Applications) + JavaBean technology, the server is apache (the most popular WEB server platform on Unix) + tomcat (a very useful JSP

Jsp & amp; Servelet Study Notes (4)

1.4 package and release servlets and jsp (preferred for SUN Enterprise applications)Create a directory structure first. Then you can use the jar tool or Ant to create a War file. /Mywebapp/ImagesWEB-INF/Classes/LibA servlet specification specifies

Jsp generates Word document format data code

1. Copy jsp page data to Word documents Var table = document. getElementById (printTable );Row = table. rows. length;Column = table. rows (1). cells. length;Var word = new ActiveXObject ("Word. Application ");Word. Application. Visible = true;Word.

Seven Tips for accelerating response to JSP pages

Method 1: cache data in the servlet init () methodAfter the application server initializes the servlet instance and provides services for client requests, it will call the init () method of the servlet. In the lifecycle of a servlet, The init ()

JSP development and use of custom tags

tld

Step description:1. Development label implementation class.HelloTag_Interface.java file content:Import javax. servlet. jsp. tagext. Tag;Import javax. servlet. jsp. PageContext;Import javax. servlet. jsp. JspException;Import java. io .*;Import javax.

I finally understood the JSP page.

When we query the database,If the query results are many,For example1000Entries,So,It would be intolerable if all of them are displayed on a page.!So we need to display it by page.,Display per page10Or20Line,The purpose of paging is as simple as

Summary of JSP Chinese garbled problem Solutions

In the process of using jsp (the preferred choice for SUN enterprise-level applications), Chinese garbled characters are the biggest headache, the following are the garbled issues I encountered during software development and solutions. 1. jsp

A new programming idea (medium) attached:

Because it is too long: You can only separate the stickers in this way. -------------------------------------------------------Core Implementation beanNtDB. java Package dba;/* Newtower database access *//* Call exampleNttestNtDB nt = new ntDB ();Nt.

JSP/servlet File Upload

Common-fileupload component: Http://jakarta.apache (the most popular WEB server platform for Unix). org/commons/fileupload/Download and unzip the zip package, copy the commons-fileupload-1.0.jar to tomcat (a good JSP running platform) webapps under

Connecting JSP to mysql

Download Connector/j(mysql()and php ))-connector-java-3.1.0-alpha.zip) from www. MySQL (the best combination with PHP). com, decompress,Copy the MySQL (the best combination with PHP) in it-connector-java-3.1.0-alpha-bin.jar to the WEB-INF

A common method for storing form data in JSP

Abstract This article takes Oracle (a large-scale website database platform) as an example to introduce a simple and common form data storage and processing method for developing WEB applications using jsp (preferred for SUN Enterprise applications,

Comparison of read/write operations on files in Java

Comparison of read/write operations on files in JavaAuthor: Jeru LiuDate: November 29,2000Version: 1.0It's hard to score over one hundred points in chinaasp (A comparison of file read/write operations in Java), 555 ~~~, I don't know how the old

Export data to an excel table on the jsp page

The Excel report method is too simple. One method can only be used on the window platform (because jdbc-odbc bridge is used) and various formulas or methods in Excel cannot be used. Therefore, today, we will introduce a component named POI from

JSP Example for dynamic Drawing Output

Import = "java. awt. *, java. awt. image. *, com.sun.image.codec.jpeg. *, java. util .*"%>Out. clear ();Response. setContentType ("image/jpeg ");Response. addHeader ("pragma", "NO-cache ");Response. addHeader ("Cache-Control", "no-cache ");Response.

JSP Learning Guide

I saw a lot of questions on the Internet about how to learn jsp (the first choice for SUN Enterprise applications), and I saw an article on the Internet about learning jsp (the preferred choice for SUN Enterprise applications, I just picked a part

JSP Study Notes (1) ----- Overview

1. jsp (preferred for SUN Enterprise Applications) is short for Java Server Pages. 2. Web applications developed using jsp (the preferred choice for SUN Enterprise Applications) are cross-platform. 3. jsp (preferred for SUN Enterprise Applications)

Jsp data Paging

Jsp (preferred for SUN Enterprise applications)Data Paging Author:He shuangjiang Keywords: Java jsp (preferred for SUN Enterprise applications)Data PagingYarshrayHe shuangjiang AboutWebData paging in applications seems to be a

Remember the simple method of JSP built-in objects (original)

First, I declare that this method is only intended to make it easier to mechanically remember those objects. After analyzing and understanding the Servlet compiled into. java by jsp (the preferred choice for SUN enterprise-level applications), we

Total Pages: 1800 1 .... 1575 1576 1577 1578 1579 .... 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.