Its range of values is page,request,session,application.
${param.id} is related to input, relative to Request.getparameter ("id"). Gets the parameter ID of the input.
Because the a.jsp is committed to the b.jsp process, the ID does not belong to one
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&
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=
Introduction:
We compare it to two large Web sites for example:
51job and Zhaopin (first of all, I'm not advertising for them, I'm just using them as an example for technical comparisons)
51job is a comparison of the "Advanced" PHP technology, and
Main principle please refer to http://blog.hunan2s.com/article.asp?id=233
After a turn of debugging, success. Oh
Attached source code.
JDK 1.5 +eclipse +tomcat 5.0.28 + MYSQL 5.0
Database test, table name News
Fields: ID int automatically grows,
method One: The simplest is the most used method
or This method is used for Chinese display in JSP pages.
method Two: Use the filter
Filters are used primarily for form submissions, and data is inserted into the database? Resolution This should
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
Recently using jquery to write down the option value of the Drop-down box to move around, the code is as follows:
Copy Code code as follows:
Untitled Document
Option 1
Option 2
Option 3
Option 4
After learning the JSP basic syntax and the use of HTML and JavaScript, JSP+JDBC connect the database to develop a dynamic Web page can be implemented.
For students who have studied Java SE, the operation of the database is not unfamiliar, if there
The following page will produce an exception:
JSP 1.0 Error Page Demo JSP 1.0 Error Page Demo String s = null; s.getBytes(); //这将给出 NullPointException例外 %>
The following page is called after an error:
Attenion the fellowing error
JSP中如何处理虚拟目录
Get the disk path for the virtual directory
The location of the Web site home directory is
The directory location where the JSP Web page resides
The location of a directory on the directory where the JSP Web page resides
1. This example mainly tells us how to use JSP actions in JSP code, such as
2. This example requires four files: login. Jsp,test. Jsp,ok.htm,no.htm
3. First look at login. Jsp
username password 4. test.JSP代码如下: String username=request.
Passing data between Web pages using JavaBean and JSP parameters
Introduction: Web Architecture designer Brett McLaughlin demonstrates how the combination of JavaBean components and JSP technologies enables you to store and deliver data between Web
Introduction: Scriptlet is a good choice for fast and miscellaneous (Fast-and-dirty) coding, but in the long run you need to choose a less cluttered solution for your JSP pages. In this issue of JSP best practices, Brettmclaughlin shows you how to
Originally I did not add ID to this parameter in DeleteUser () and myconfirm (), but found that it was not possible to pass this parameter without ID in the deletion of this link deletion. i tried to change the position of deleteuser (), but found
Before writing a simple JSP to do the stress test, did not expect a problem is when the pressure is relatively large, run a long time will appear a phenomenon, that is, the JVM's memory is almost exhausted, with Jprofiler view will find that there
We continue to learn, in the last article on the request attribute, then both the client and the server can be implemented to jump, then use the session.
Third: Session Properties
We then revise the code in the previous article to compare:
Built-in objects are the core of JSP, it can be said that built-in objects throughout the Web, even in the subsequent development is still frequently used.
The table in "JSP built-in object" 01 "describes the built-in objects in 9 that are really
1. PrerequisitesWeb-inf directory:1. Web-inf is a secure directory for Java WEB applications. The so-called security is the client cannot access, only the server can access the directory2. Web. XML: Project Deployment File3, Classs folder, you can
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