1. Question about Chinese characters displayed on the JSP page
The first line of page is changed to:
Head Riga:
2. Question about the Chinese version of the page form content submission1) As long as % tomcat installation directory %/webapps \
During the interview today, the technical officer asked this question. I sorted it out:
Forward () Acts on the server,After redirection, the URL address of the browser remains unchanged, so the parameters cannot be passed through the get
Learn jsp from scratch
0.0.1
Copyright 2008 ding dong
Old cainiao ding dong
If you have any questions or suggestions about this document, please send an email or leave a message.
QQ: 475784337
QQ: 51239192
MSN: lingirl6@hotmail.com
The include command is a command in the compilation phase. That is, the content of the file contained in include is inserted into the JSP file during compilation. the JSP Engine judges that the JSP page has not been modified, otherwise, it is deemed
How to use JSP to generate an Excel file http://code365.com/tech/10/65/Article/5677.Asp
12:01:49 domain name www.code365.comBrowsing statistics Total: 237 | year: 237 | month: 89 | day: 4
. Create a web project testserviceThe directory is as follows:CN -- Test -- service -- impl
2. packages to be importedActivation-1.0.2.jarCommons-codec-1.3.jarCommons-httpclient-3.0.jarCommons-logging-1.0.4.jarJaxen-1.1-beta-8.jarJdom-1.0.jarLog4j-
In CMS, BBS, and other systems, there will be post module, and the article will contain attachments and images. When you click an attachment, the SAVE dialog box may appear and the browser will open it directly, for example, the connection
Reference: http://liuna718-163-com.iteye.com/blog/1318991
1. The iterationtag interface is a sub-interface of the tag interface, which has a doafterbody method. This method determines whether to repeatedly execute the TAG body content.
2. The Web
This article discusses JavaBean. In the previous servlet & JSP events (12), we wrote a simple message board, but there are some problems in this small project. For example, we include a large number of Java code in the JSP page, which is fine for
Parameters passing between JSP pages is a feature that is frequently used. Sometimes, parameters passing between multiple JSP pages are required. The following describes the implementation methods.
(1) Add
For example, directly passing parameters
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
==>Object o = request. getattribute ("today ");If (o! = NULL ){Date today = (date) O;} Else {Date today = new java. util. Date ();Request. setattribute ("today", today );}The class is first searched. If it cannot be found, a new object is created
JSP generate WORD Documents[Date: 2006-12-18]
Source: http://www.gs008.com/blog/blogview.asp? Logid = 324
In the web-OA system, document management seems indispensable. Sometimes some data needs to be queried from the database and output in a
Three JSP pages: page1, page2, and page3The page2 page is obtained through page1 query, and the page3 page is obtained through the link of the page2 page.Back now. When page3 is back, delete the following script in page2; otherwise, the page will be
// Counter. Java: A bean for reading and writing files======================================// The TXT format counter for website read/write operationsPackage net.com. util; Import java. Io .*;
Public class counter extends object {Private string
1. Search for db2java.zip and rename it db2java. JSR to the common/lib directory of Tomcat installation.
(2) create a database test in DB2. Table users (3) run the JSP code.
// Testdb. jsp% @ PageImport = "Java. SQL .*"
Import = "Java. util
Today, my friend asked me a question: in the action, if the operation is successful, I want to give the user a javascript dialog box to prompt that the operation is successful.
I thought about it and said that it would not be enough to output a
Transferred from: forum.ubuntu.org.cn Author:Vstar
First, check that jdk has been installed in the Installation Guide (wiki.ubuntu.org.cn ), and then add the JAVA environment variable to the system.Sudo gedit/etc/bash. bashrcAdd at the endExport
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.