(Author: Small Longting main Blueski compiled December 22, 2000 14:22)
(Editor: The original text of this article first appeared in foreign countries, JSP is just a budding technology, and not as it is now in the heyday.) Now it seems that some of
This article illustrates the method of JSP exception handling. Share to everyone for your reference. Specifically as follows:
To handle the exceptions that a JSP program might produce, you can do so from multiple angles: You can target specific
This article describes the client-side validation, common output, and JSTL basic usage of the JSP introductory tutorial. Share to everyone for your reference. Specifically as follows:
First, the goal:
① Master the basic process of client
Typically, session management is used to uniquely identify each user session by storing it in the user's Web browser as a cookie through the server. If the browser does not support cookies, or if the browser is set to not accept cookies, we can use
This article describes the JSP to achieve a simple user login and display the user information method. Share to everyone for your reference. The implementation methods are as follows:
login.jsp
Copy Code code as follows:
From last September, I began to learn JSP, before only a little program of consciousness, groping along the way over, after a lot of hardships, finally one day, I like a dry duck learned to swim, the heart is extremely happy, endure a few days,
JSP Another important syntax is tags (tags). JSP tags are not used characters. The end sign is to add a backslash (/) character after the character
Body
If the flag does not require a body, the start and end flags can be combined, such as:
Familiar with JSP server
This "JSP for the Light" series tutorials are for intermediate and advanced users, and it requires the basics of HTML and java. You should be able to connect HTML pages together and use Java for programming. If you do not
The counter is the general website Essential Dongdong, do not underestimate it, each time stationmaster looks at the small counter the numeral to grow rapidly, the feeling is very great. We used CGI, ASP to write counters, this article a lot of,
First example:
Simple JSP custom tags to get content:
First create a JSP instance class and then inherit the Simpletagsupport class
Then implement the Dotag () method of the parent class
In this method get the contents of the tag body
Owning interface: Javax.servlet.http.HttpServletResponse, whose parent interface is Servletresponse, And Servletresponse now has only one httpservletresponse sub-interface, the main reason is that now the Java EE Web program mainly with the HTTP
Action Code Fragment
Copy Code code as follows:
Public String execute () {
String ret = Super.execute ();
if (Return_list.equals (ret)) {return list ();} else {return ret;}}
Public String list () {String show = This.getrequest ().
The servlet has a very interesting and useful function, that is, filter. The so-called filter is a small program that executes before a user requests to the servlet, or after the servlet executes, to preprocess a user request, or to do some public
Visible use of Hibernate, in the query paging operation, is very flexible, hibernate will first attempt to use a specific database paging SQL, if no use, and then try to scrollable, if not, the final use of Rset.next () mobile approach.
(i) Pager
But in the adoption of APACHE,SQUID and other reverse proxy software can not get to the client's real IP address. If the reverse proxy software is used, the IP address obtained using the REQUEST.GETREMOTEADDR () method is 127.0.0.1 or 192.168.1.110,
1. Home (fill in the name) (optional, form post to time.jsp can):
Slightly
2. Judging time forward to different pages:
TIME.JSP:
Copy Code code as follows:
Document:index
Created on:2009-10-3, 15:48:00
Author:lucifer
--%>
"
1.JSP Code:
Copy Code code as follows:
Document:index
Created on:2009-10-4, 12:45:43
Author:lucifer
--%>
"Http://www.w3.org/TR/html4/loose.dtd" >
jsp page
Get Scheme:
Get Protocol:
Get Remote Address:
Name:Js:javascriptJsp:java Server PagesExecution process: JSP first translated, translated into servlet executionsuch as: test.jsp to become Test_jsp.java and then compiled into Test_jsp.classAnd Test_jsp.java itself is a servlet.So JSP is just a
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