1. Configure the Web. xml file for the Structs ApplicationStep 1: Configure ActionServlet
action org.appache. structs.ActionServlet action *.do
Note: No matter how many sub-applications are included
In Web applications, images are often generated dynamically, such as real-time stock market quotations and various statistical charts. In this case, images can only be dynamically generated in the server memory and sent to users, then it is
① EL keyword list
Div-division (/) mod-remainder (%) eq-equal to (=) ne-not equal (! =)Lt-less than () le-less than or equal to ( =)And-logical and (&) or-logical or (|) not-logical non (!) True-logical truthFalse-logical false null-null
Premise: use JSP to display images. The image is stored in the database.
Method: connect to the database using JDBC, read data from the database, and output data to the page using the output stream.
Class. forName ("oracle. jdbc. driver.
JSTL is a standardized tag library set. It supports iteration, condition, and XML document parsing, internationalization, and the use of SQL and database interaction functions. JSTL consists of four basic parts: Core, XML, internationalization, and
When a JSP page is requested, the corresponding FormBean is automatically created and the struts tag control is set by the corresponding attribute. Therefore, if you want to set the initial values for the controls on the page from the very beginning,
In JSP, how does one obtain the Automatically increasing ID Primary Key Value in the MSSQL database table?
For example, to create a table, student has the userid attribute column. In username, userid is the primary key automatically added to
In order to accelerate users' browsing speed, browsers Usually retrieve browsed web pages to the hard drive. The next time they browse the same page, they will go to the hard drive to find them. However, the current web pages are dynamic, to prevent
Meaning of JSP:
JSP technology uses JAVA as the scripting language. JSP web pages provide an interface for the JAVA Library Unit on the server to serve HTTP applications.
JSP is a dynamic web page technical standard proposed by Sun Microsystems and
SP operation Access DatabaseRecently, when I used JSP to write the company's website sample program, I used JSP to operate the Access database. Many things are not difficult, but we don't know. ^-^ Haha, so now I have written a small program to
One of the most flexible methods for publishing JSP websites can be configured in the Servlet. xml file under the conf directory of TomcatCreate a new Context tag in the Host tag to deploy a JSP application. If you deploy it here, we do not needYour
Tomcat is a Servlet container with web server functions. We can download it from the address below.Http://apache.mirror.phpchina.com/tomcat/tomcat-6/v6.0.14/bin/apache-tomcat-6.0.14.exeThe installation is very simple. The default port number is 8080,
There are five types of JSP compiler guidance and Directive elements. after JSP 1.0, most of the JSP is contained in a single tag with as the end. the new JSP 1.1 Specification has been published, and it is also compatible with XML.
The compiler
The Code is as follows:
ConnectionTimeout = "20000"RedirectPort = "8443" type = "regxph" text = "yourobjectname"/>ConnectionTimeout = "20000"RedirectPort = "8443" type = "regxph" text = "yourobjectname"/> Changed:
JSP built-in Object request object
The request information of the client is encapsulated in the request object, so that the client can understand the customer's requirements and then respond. It is an instance of the HttpServletRequest class.
Serial
Import java. SQL .*;
Several issues to be aware of when Jbuilder correctly connects oracle ArrayiThe classes12.jar file should be used as the jdbc driver for oracle8 and later versions;Correctly set the classpath for windows and enterprise setup and
There are many algorithms for implementing the tree structure of the Forum. For details, you can go to www.chinaasp.com for full-text search. My current JSP Forum uses one of the following algorithms: Tree Structure algorithms are not implemented
Final-modifier (keyword) If a class is declared as final, it means that it cannot generate a new subclass and cannot be inherited as a parent class. Therefore, a class cannot be declared both abstract and final. Declare variables or methods as final
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