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
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
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
Response. setContentType ("text/html; charset = gb2312 ");Request. setCharacterEncoding ("gb2312 ");
Out. print ("========================== Test for thumbtail picture ================ ");
// ----------------------- After the upload is complete, the
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.
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);
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 =
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
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
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
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
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
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 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
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
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
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.
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
Register. jsp (preferred for SUN Enterprise applications)
---------------------------------------------------------------------------------
File: // global variable definitionGlobalTableName = "bbs_users ";ParentKey = "BBS user information
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,
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