JSP Other related resources:
Servlets and JavaServer Pages (JSP) 1.0:a Tutorial
http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/
JavaServer pagestm:a Developer ' s perspective
js| notes
1.JSP is a shorthand for Java Server pages.
2. Web applications developed with JSP are cross-platform.
3.JSP Technology is an extension of the servlet technology. The servlet is platform-Independent, 100% Java server-side components of
js| Solve | The problem
The recent use of JSP to do news release found that the rs.getstring () obtained by the string inside the space and the line of change are not shown,
First analysis of the reasons, I used the MySQL database, the news content
Recently done a project, JSP page background picture always consider its size, trouble dead. The results went online to search a good way to share with you
background
The 4.jpg pictures are as follows:
Some netizens do not know how to run their own JSP files, I briefly introduce here, to provide you with a point of reference:
1. Download and install Tomcat. Download Address: Http://jakarta.apache.org/tomcat
2. Write your own JSP Web pages and
This section covers two pages, one donewuser.jsp file is used to implement record add operations, another file listuser.jsp file
Used to display all of the registered user information. Both of these pages involve a specific call to the JavaBean, or
JavaBean is a Java-based software component. JSP provides complete support for integrating JavaBean components in Web applications. This support not only shortens development time (can directly leverage tested and trusted existing components, avoids
JSP Other related resources:
Servlets and JavaServer Pages (JSP) 1.0:a Tutorial
http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/
JavaServer pagestm:a Developer ' s perspective
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
/** Tounicode.java * *
Package com.edgewww.util;
Import java.io.*;
/*** A class that converts a string into a Unicode code* @author Sukinqui jsp@shanghai.com* @date 2001-03-05*/public class Tounicode {
/*** Convert string to Unicode code* @param
Declaration in JSP:
There are two ways to declare in a JSP: one is , and the other is , now talk about the second kind.
1, test conditions:
Suppose there are two pages test1.jsp and test2.jsp have the following code:
Out.print ("The"
tag to write a tag involves three steps,
(1) Write JSP
(2) Write tag Java program
(3) Write tag library description file TLD (actually an XML file)
There is no sequential constraint between these three steps, and here is a simple example:
1
Because response is an implied object in JSP pages, you can use Response.sendredirect () directly in JSP pages to achieve relocation.
Attention:
(1). You cannot have HTML output before using Response.sendredirect.
This is not absolute, and the
Java Server page (JSP) is a growing technology for building dynamic Web pages. JSP and ASP, PHP, working mechanism is not the same. In general, JSP pages are compiled, not interpreted, as they are executed. The first call to the JSP file is actually
There are local languages in every region of the world. The regional difference leads directly to the difference of language environment. In the process of developing an internationalized program, it is important to deal with language problems.
In Web applications, content caching is one of the most common optimization techniques and can be easily implemented. For example, you can use a custom JSP tag--we'll name it
--by
and
encapsulate each page fragment that needs
Pagect.java-Paging class/*@version ***********Created on June 25, 2001, 14:41***************************************/Package VOD;Import java.sql.*;Import java.util.*;
public class Pagect{Private long L_start; Start recordingPrivate long l_end; End
Use the JSP page to define a tag library and prefix using taglib directive from the definition tag.
Its syntax:
Example:
.
Describe:
The Directive (Directive) allows you to use custom labels, name the tag libraries, and specify
Because the switch.jsp is specified as the response JSP file in the Login.jsp form, when the user selects the logged-on user in login.jsp, the client sends an HTTP request to the server after the input password submits the form, and the server calls
JSP syntax
JSP directive elements
(1) Include: Import other folders
(2) Page:
Language: In what language, only Java
Contenttype:mime type
Import: Importing Java Packages
(3) Taglib: Custom Tag Library
JSP Common standard elements
(1)
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