Introduction to JSP development (i)----Install your machine to use JSP
You will need the Java 2 Software development tool (JSDK), its original name is the Java development tool (JDK) and the JavaServer Web site development tool (JSWDK), Tomcat, or
Information Publishing Interface
Provides an interactive interface for publishing information and invokes the RECORDMESSAGE.JSP program.
saymessage.jsp
Information Release
Line name:
Display serial Number:
Tour
Look at the time, see the book on the use of cookies to save information, see the book cited examples are English key value pairs, I think Chinese is not the same? A try is not the same. Nonsense not much to say, directly on the code:
For example,
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
First, the preface
The original author of this article is Tony Wang, which covers the reading and writing of files and the automatic generation of JPG images. Using Jsp+servlet technology, the JSP calls the servlet to generate pictures.
Second,
This section describes the two interfaces ServletContext and ServletConfig. Through these two interfaces, we can set some parameters in the Web.xml, such as database address, username password, etc. for the servlet to use, so that each parameter
JSP nine large implicit objects:
Object Name
Describe
Scope
Data type
Request
This object encapsulates the details (parameters, attributes, headers, and data) of HTTP requests generated by Web browsers or
The JSP code is as follows :
Copy Code code as follows:
Documentation
Company News
Copy Code code as follows:
function Wdquery () {
var keywords= document.getelementbyid ("I-0-keywords"). Value;
var
The jsp:plugin Action enables you to insert the object or EMBED element of the specific browser you want to specify the plug-ins that the browser needs to run a Java applet.
Syntax:
[Name= "InstanceName"]
[archive=
The ArrayList object obtained in Useraction is populated into UserForm, and the JSP page gets the initial value of UserForm.Part of Useraction code:
Copy Code code as follows:
Private Actionforward executemanageaction (actionmapping
There are not many opportunities to use COM components in JSP programs, and JSP does not directly operate COM functions, but some work must also use COM components to complete, the following is the specific method of operation.There are two ways to
Today involves a problem, in the query criteria in the JSP, there are text boxes to enter filter criteria, there are drop-down boxes to select the filter criteria. The contents of the input box can be deleted by pressing the "Backspace" key, but the
A, JSP El language definition E L (Expression Language) Purpose: to makeJSP is simpler to write. Expression languages are inspired by the ECMAScript and XPath expression languages, which provide a way to simplify expressions in a JSP. It is
Using custom tags in a JSP can do that, in fact, the types of frameworks we know are basically implemented in the form of custom tags.
By using custom tags, we can display complex logic on the page with simple labels. Let's implement a very simple
Verify Sex (radio button validation)
function Checkxb () {
var temp = false;
var xbobj1= document.getelementbyid ("Xb1");
var xbobj2= document.getelementbyid ("Xb2");
if (xbobj1.checked | | xbobj2.checked) {
temp = true;
}
return temp;
}
function
1, under Tomcat for the old domain to do a virtual host
Home page for index.jsp, 404 error page for unfind.jsp
Homepage uses 301 to turn, is advantageous to the search engine optimization
Response.setstatus (301);
Response.setheader ("Location",
1, the problem leads to:
We often need to use Ajax in JS to send the request in the background, before we need to collect the required form form parameters, I often this solution, simple and convenient:
Editbasicdataobjectform is the form of 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