Ajax Dynamic Delivery page, JS Ajax writing, using ID identification to pass objects
For example: Now there is a demand, a page, divided into about two blocks, the left navigation menu has a user list information function button, want to be on the
Using SessionID and timestamps as identifiers, the key code is as follows:
Copy Code code as follows:
public class Sswpdjaction extends baseaction{
Public String execute () {/** Business code **/................Set
1. Descending jump per second
Copy Code code as follows:
2. Using the Response.setheader function
Copy Code code as follows:
3. Using META tags
Copy Code code as follows:
The following page will produce an exception:
jsp 1.0 Error Page demo
jsp 1.0 Error Page demo
String s = null;
S.getbytes (); This will give the nullpointexception exception
%>
The following page is called after an error:
The last component associated with the JSP syntax is called an internal object. Within the JSP small instruction file, you can access these internal objects to interact with the servlet environment that performs JSP Web pages. Many of the access to
Summary
When programming for server-side components, you are likely to get a true path to a file from a path relative to the Web root, but this file is actually on a virtual path in the site.
What is a virtual path?
On a Web server, the virtual path
Are you often complained by customers that JSP pages respond very slowly? Do you think your Web application can withstand ever-increasing amounts of traffic when the number of customer visits is soaring? This article describes some of the most
1 JavaScript, set a variable to allow only one submission at a time.
2 or JavaScript, put the submit button or image as disable
onsubmit= "Getelbyid (' submitinput '). Disabled = true; return true; " >
3 synchronization token mechanism
Garbled behavior occurs when importing HTML through JST in a JSP, because Org.apache.taglibs.standard.tag.common.core.ImportSupport
Charencoding value is null, charencoding is the default value, which is iso-8859-1
Fortunately, charencoding can
Block JSP pages and verify that they are logged in
Recently using STRUTS2 to do projects, you need to intercept the JSP to verify that it has been logged, but the STRUTS2 filter chain can only filter action. Later found in the web.xml can directly
JSON has been described in detail in the previous article, and JSON is straightforward and fast. And it blends well with JavaScript.
The JSP paging problem can be done well without the need to add a jar.
The following is a detailed description of
When each JSP page is accessed for the first time, the Web container handles the request to the JSP engine (that is, a Java program). The JSP engine first translates the JSP into a _jspservlet (essentially a servlet), and then invokes it as a
Introduction to Taglib Instructions
The taglib directive, in fact, is to define a tag library and the prefix of the custom label.
such as struts in support of the tag library, HTML tag library, bean Tag Library, logic tag library.
One of the
There can be no web.xml files in a web, that is to say, web.xml files are not necessary for Web engineering.
When do you need it, and when do you want it?
To answer the question above, you need to know what the Web.xml file is for. Web.xml files
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,
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