"Click to view the original"
JSP (Java Server page) Java service-side web page, is a Dynamic Web page technology, which and. NET, the ASP functions are the same. JSP is a set of standards set by sun, and is one of the 13 specifications of Java EE.
The previous system has been equipped with JSP's operating environment, then Google came to some information, today, the process of their own record down.
1. Development environment Configuration
1.1 Download Java SDK and Tomcat
Javase SDK download
1. Introduction
The include directives in the JSP are in the form of:Typically, include is considered when parts of all pages in an application, such as headers, footers, and navigation bars, are the same. The include directive element of the ,jsp
use this class to place data in
JSP The
page is displayed in tabular form, and it has dynamic sorting and dynamic query function. This class can be easily implemented: 1, the data read out of the table in tabular form. 2, according to the
Button type:LINK Type: Back to the previous step " > Back to Previous step Direct Jump Type:Open a new window: The days on the cloud JSP Jump WayThere are approximately three ways to jump using JSPs:1. Response.sendredirect ();2. Response.setheader (
In the direct to format. such as: is to output the attribute date in YYYY-MM-DD format . 2. Use for formatting. such as: or " /> 3. Another way to do this is through an international approach: first
Plug a specific value into the hidden field to pass back to the table
/**
*フォームにデータをセットする.
* @param form_noデータをセットするpropertyのform name またはformのインデックス
* @param propertyデータをセットするオブジェクト Name
* @param value propertyにセットする
*/
function Setformdata
The method of Excel reporting, one that is too simple, one that can only be used on window platforms (because of the use of Jdbc-odbc Bridge), and cannot use various formulas or methods within Excel, so today we introduce an Apache component called
These two days in the development process encountered a strange problem: the same Web application, the same JSP in different operating systems to be handled through different processing to solve the garbled problem.
The default encoding for JSP
/**
* Write the following Sessioncounter.java
* and compiled to Sessiioncounter.class
* Then put it on the classpath of your website
* Sessioncount (build this directory yourself) below
*/
Package sessioncount;Import javax.servlet.*;Import
Request is an object that encapsulates the requested data and attributes submitted by the client side (that is, the user through browser).
response are objects that encapsulate Web server-side response data and
Some time ago in the use of Struts2, more is considered by the JSP get action stored in the session or request key.
Such as:
Public String getinfbysal () {
Connection con = oracleconnectionmanager.getconnection ();
Userdao Userdao = new Userdao ();
Serial numberVenue nameStart timeEnd timeApplication Status "id=" " style=: Center ">/conference_room_view.action?room_id=&optype=2 '; " >
Explain it, the future of the province will not remember when you see it.
The key is the Red section, which
A simple reflection method in one of its own JSP was used to display the property method constructor of a class, as follows:
void Reflectapi (Javax.servlet.jsp.JspWriter out,string className) throws exception{Class Cls=class.forname
Just a preliminary understanding of the JSP nine objects, such as the ASP simple page program to find data written out should be no problem, but there is a problem has been puzzling me, that is how to deploy JavaBean? In the afternoon to see the
1. Use the Label control page logic case: Simulate the development of the tags-development tags-development tags-development of iterative tag development tag Case: Tag control class: P
Ackage Com.csdn.web.example;
Import
Summary of JSP page jump1. Requestdispatcher.forward () acts on the server side, and when using forward (), the Servlet engine passes HTTP requests from the current servlet or JSP to another servlet, JSP or normal HTML file, that is, your form
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