This paper discusses several implementation methods of Web page automatic jump.Method one: Using the META tag meta tag is one of the indispensable tags of HTML, which is responsible for providing meta information about the document, and its
Typically, the browser receives a Web page that contains code that automatically loads a different page. The page may be converted on the server side, so that the browser receives only one page, and automatic steering often means that the page
JavaScript code:
Copy Code code as follows:
Key code in a JSP page
Copy Code code as follows:
Set the ID of the table so that the table can be recognized in JavaScript
Copy Code code as
The example of this article describes the Js+jsp method of implementing static page access count through the IMG tag invocation. Share to everyone for your reference, specific as follows:
Test page: test.html
test
Sendredirect
Response.sendredirect ();
According to the logic, the server sends a status code, tells the browser to request a new address again, generally speaking, the browser will use all the parameters just requested again, so the
Recently completed a project, which encountered two times more bizarre garbled problem, recorded here, to give himself a wake-up call, but also for the latter to provide reference.
This is a project that is implemented with SSH, in order to prevent
The function of the jump:
You can use a jump instruction to transfer a user's request from one page to another page.
For example: User login QQ space, if the user name and password correct words will jump to the home page, otherwise it will jump
One of my classmate asked me, Java has "//" This kind of annotation, easy to use, JSP annotation is not this? "//" is not available in the JSP.
For a JSP that has studied for such a long time, annotations are the most basic. The annotations in the
Tag Library taglib
tags are defined and distributed in a structure called a tag library, which is a collection of meta information and classes:
1. Label Processor: Java class that implements custom label functions.
2. Tag additional information
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
Have you ever wanted to send a dynamically generated image from a JSP page (or servlet)? This tip tells you how to do it. To run the code here, you need a tomcat or other Web server that supports JSP 1.1.
When a MIME type of a Web page with
JSP, a technology launched by Sun Microsystems in June 1999, is a web-based development technology based on Javaservlet and the entire Java system that enables the creation of advanced, secure, and Cross-platform Dynamic Web sites.
JSP is very
After studying the request and response, we will study the session object together, and we can say that the session object and the request object are the two most important objects in the nine big objects.
Introduction to Session Objects
In the
There are many methods about the request object, in the JSP built-in object "03" request Detailed "01", we have learned the request object in the parameter acceptance problem, then look at the other methods of request now:
Garbled solution
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:
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
When this page appears, the controller must be found, just trying to parse the Viewresolver parsing attempt failed, for two reasons1. The resource hello.jsp file is not actually placed in the Web-inf directory2, the resource file is placed in the
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