Servlet/JSP configuration details

For example, how to configure environment variables and How to Run Servlet? There are too many such problems. Now I want to write a beginner entry, so that it can be helpful for beginners! First, download the tool: I suggest using Editplus + JDK for

Tomcat5.0 and tomcat5.5 have different configurations.

Every project will go through the database for a while. It was previously well handled, because it is based on tomcat (a very useful JSP running platform) 5.0, whether it's with ORCALE SQLSERVER2000 or MySQL (the best combination with PHP), I 've

Detailed description of JSP internal objects

1.1 application* Obtain the application object in jsp (preferred for SUN Enterprise applications)For example, getServletContext (). setAttribute ("counter", new mycount. Counter ());Example: * Methods for handling On Application Start and On Session

Code for generating image thumbnails in jsp

Response. setContentType ("text/html; charset = gb2312 ");Request. setCharacterEncoding ("gb2312 "); Out. print ("========================== Test for thumbtail picture ================ "); // ----------------------- After the upload is complete, the

New Application of buffer technology in JSP

I. OverviewIn Web applications, the generation of some reports may take a long time for the database to calculate. Some websites provide weather information, which requires access to a remote server for SOAP calls to obtain temperature information.

Jsp object details

1. Out objectIt is mainly used to output data of various formats to the client and manage the output buffer on the application server. The base class of the Out object is the javax. servlet. jsp. JspWriter class.Out Methods:Out. println (DataType);

JSP connection to various databases (6)

Vi. jsp connection to MySQL database Testmysql. jsp is as follows:String url = "jdbc: mysql: // localhost/softforum? User = soft & password = soft1234 & useUnicode = true & characterEncoding = 8859_1"// TestDB is your database nameConnection conn =

JSP (4-3)

Another variable that is predefined and useful is "request ". It is a javax. servlet. http. HttpServletRequest.The "request" on the server side handles the work between the browser and the server. When you click Connect or enter a URL, the browser

One of the EJB series tutorials (JBuilder4 + IAS41 + Vbj411 Basic settings)

I. PrefaceFirst of all, I am not familiar with JB4 (JBuilder4), IAS41 (Inprise Application Server), and Vbj411 (VisiBroker For Java), but I have read the configuration and test of some English documents, if it succeeds, write it out, which may be of

Tomcat Chinese manual (2)

Jakarta-Tomcat Simplified Chinese version User Guide Part 2  Element and description ServerThe most important element in the server. xml file. Server defines a Tomcat Server. You do not have to worry about it too much. The server element can

JSP Chinese problem solution

You only need to keep the settings in the following places so that your JSP will not have any Chinese problems.1. charset of JSP2. Your jsp server uses the character set for compiling JSP. By default, it is the same as the operating system. You may

Use custom tags to return the result set to the jsp page! (Recommended method)

In a web application, if you directly store the result set ResultSet rs in the session or reueest range, It can be passed to jsp (the preferred choice for SUN Enterprise applications) and displayed, However, it should be considered that if a large

Use the Request object to prevent JSP caching

Because the browser stores the previously viewed data in the browser's cache, the browser sometimes fetches the data directly from the cache, because after we modify the program, the old data is displayed. The following code can fix this problem. 

Break through the JNDI connection pool (configure the connection pool through the Management Interface in Tomcat5.5)

Break the JNDI connection pool --After several days of hard work, I can finally connect to the connection pool. I have referred to many of my posts on this topic. Now I have written several issues that have occurred over the past few days here:I. in

Research on JSP page encoding (original)

Jsp (preferred for SUN Enterprise applications)Research on page Encoding Motivition A netizen once asked me this question: China Why does the "China" page become garbled during operation?   Analysis Key Step For the analysis of the above

Db4o guide for Java programmers: arrays and collections

In this article, we will introduce the storage and operation of structured objects in db4o, and first introduce the diversity relationship. In the diversity relationship, the object contains fields in the form of object sets. Db4o can easily process

Jsp & amp; Servelet learning notes-compile a servlet

1.3 compile a servletIf you have written a servlet, how can you compile it into a class file;First you need to check if the servlet-api.jar is configured under your classpath. Then you can use the javac command to compile other java source files.

Jsp & amp; Servelet learning notes-create multiple mappings for a Servlet

Create multiple mappings for a Servlet What should we do when we want to create multiple names or URL patterns so that web users can request a servlet? You can configure multiple servlet-mapping related to servlet elements in the deployment

A new programming idea (below): the register. jsp of bbs

Register. jsp (preferred for SUN Enterprise applications) --------------------------------------------------------------------------------- File: // global variable definitionGlobalTableName = "bbs_users ";ParentKey = "BBS user information

Include in jsp

is equivalent to static compilation to the same page, such as content-type.Otherwise, errors such as duplicate inclusion will be reported, and itself should be equivalent to two independent page units that do not interfere with each other,

Total Pages: 1800 1 .... 1358 1359 1360 1361 1362 .... 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.