Nine objects:
Built-in object (also called implicit object, with nine built-in objects ):CodeAnd can be used freely in expressions.
1-out:
Javax. servlet. jsp. jspwriter type, representing the object of the output stream. Scope: page (page
Escape encoding in JSP pageWhen I passed parameters in Chinese today, I was unable to pass the live encoding, so I thought of using escape.Request. getparameter could not receive the parameter, so he thought about how to receive the parameter.Tested
First of all, it should be noted that DB2's SQL statements and command line statements are separated, Unlike SQL Server 2000 which can be backed up through SQL statements, so the idea of backing up SQL server is not a line, after many attempts, I
JSP page
When using the jstl's Expression Language, the request parameters are made available in the implicit objectParam. This example demonstrates how to include the value of a request parameter from the query string or posted data in the
Log4j is often used for log output during web development. The log level is frequently adjusted during software test run.
If you modify log4j. xml once and restart the web application, it is very troublesome.
The following program can implement
① Out-javax. servlet. jsp. jspwriter The out object is used to output the result to the webpage. method: 1. Void clear (); clear the content of the output buffer, but not output to the client. 2. Void clearbuffer (); clear the content of the
JSP custom tag Learning (advanced)
Keyword: custom tag
Bodytag Interface
The implementation class of the bodytag interface, which is used to operate the body content (bodycontent ).
Definition method: Public void doinitbody ();
Public int
1. Javascript. Set a variable and submit it only once.
2 or Javascript: Set the submit button or image to disable 3 solve the problem of repeated submission in Web applications by using the struts synchronization token mechanism and the
JSON-taglib is a set of JSP tag libraries used to output JSON-format data in JSP code.JSON-taglib converts data formats using JSON: array, JSON: object, and JSON: property.
The specific usage is as follows:
Just dropJson-taglib.jarFile
After careful consideration, we found that when we entered hi.csdn.net/##in csdn, there was not a jsp PHP page, but it was directed to another place. Here ** the user name can be used to hide the address and pass parameters. Assign a path to each
In the past two days, I created a project JSP + hibernate + MySQL. During the query, the Chinese language was normal, but the Chinese data was inserted with garbled characters. So I found a filter on the Internet to solve the problem, in JSP, gb2312
[Original content]
Q &
1,
JSP
The Web
For the technology of developing dynamic interactive web pages in applications, describe JSP
Advantages and disadvantages of technology?JSP technology has all the features of Java technology, which are simple
1. Create a bean
Package guestbook;Import java. SQL .*;/*** Title: connect to the database with JavaBean* Description: encapsulate common database functions with bean and declare the bean in JSP.* Copyright: Copyright (c) 2001* Company: Speed
Session usage in JSP
The JSP session is a life cycle of bean. Generally, it is page, which means that the session is valid until the user leaves the website. If the user cannot determine when to leave, it is generally set based on the system, tomcat
Private string projectname = "sz_pro"; // name of your project
// Obtain the absolute path of the current projectPublic String getporjectpath (){String nowpath; // The current Tomcat bin directory path, for example, D:/Java/software/Apache-Tomcat-6.
Response is an implicit object in the JSP page. Therefore, you can use response. sendredirect () in the JSP page to directly relocate the object.
Note:
(1) When response. sendredirect is used, no HTML output is available.
This is not absolute. The
Hello everyone, this is my first blog. Sorry for the poor writing.
I have been asking questions about the number of online users and the number of online users today. I have found many online users, but they are not very good. They have many
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