The JSP compiler guidelines and instruction components have five types. After JSP1.0, most of the JSP is contained in a single tag that ends. The new JSP1.1 specification has been published and is also compatible with XML.
The compiler guidelines
Entity Bean defined in JSPclu" class= "Cn.domain.CacluBean" >CLU" > Gets the Bean's property value and outputs the value to the page;
El expression : ${entity object name}When an El expression takes data, a. Number is usually used, and.
In Google's process to see this article ("Nicedit in jquery can not get the textarea value") to get an inspiration, that is, you can read out the Nicedit Rich Text editor with JS content, assign its contents to textarea, and then submit the form.
Today there is nothing, suddenly think of a problem, can access the suffix of JSP file to my own suffix it? After some of their own debugging, finally succeeded. Hahaha. So happy ...First of all, configure in WEB.XM.testsuffixmytest.
1. Write a tag processor class that implements tag interface
Copy Code code as follows:
Package Cn.itcast.web.tag;
Import java.io.IOException;
Import Javax.servlet.http.HttpServletRequest;Import javax.servlet.jsp.JspException;Import
If the page in the jsp:include is garbled, you need to add the in the page that uses the
Request.setcharacterencoding (' UTF-8 ');/or specified encoding (GBK or other)%>As shown in the following:
Copy Code code as follows:
jsp-include.
Displayfile.java
//*********************************
File parentdirectory = null;//current directory
ArrayList [] File = null;//holds all files in the current directory
ArrayList [] directory = null;//holds all directories in the current
1. When declaring variables: (converts a variable to a member variable of a servlet class, where multiple clients share one) and the (just a local variable within a method, one for each client) is used in the process of Try to avoid declaring a
The user name and password in the form the data for both components will be passed to the server's switch.jsp via an HTTP request, and the server encapsulates the information in the request object to switch.jsp, so switch.jsp can pass
This problem also bothered me for a long time. Because of the El tags and other labels used within the JSP, a large number of spaces and line breaks are generated. For example:
Copy Code code as follows:
-------Start----------
1&
Three-step:
First, under the Web-inf to build a folder named TLDs, and then build a TLD file, such as FORMATTIME.TLD, the content is:
Copy Code code as follows:
"Http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd" >
1.0
1.1
1. Configure Context.xml Files
Copy Code code as follows:
Name= "Jdbc/books"//reference name can be customized
Auth= "Container"//Specify Manager for admin datasource
Type= "Javax.sql.DataSource"//Specify Package name
Maxactive=
I. Establishment of databases and ODBC data sources
1. Establish Jcc.mdb database and user table
2. Add test data
3. Configuring an ODBC data source
Two. Under /, create a new Access database connection file select.jsp
Select.jsp source code is
It's not complicated to do trees, but we usually do 2 or 3 layers, and that data comes from more than one table, such as: Department, employee
Yet this self-contained table, which has no definite level, may be infinitely multilevel
For example: A is
My environment is Win2003+jdk+tomcat, the version is as follows
Jdk:jdk-6u10-rc2-bin-b32-windows-i586-p-12_sep_2008.exe
Tomcat:apache-tomcat-6.0.35.exe
I only need these 2 software can, do not have to create environment variables or anything, I have
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