Built-in objects:
Request,response,out,session,application,cookie,config,page,exception.
1. Request Object
This object encapsulates the information submitted by the user, and it is possible to obtain the encapsulated
One, Page object
The Page object represents the JSP itself, or rather, it represents the JSP-translated servlet, which can invoke the method defined by the Servlet class.Two, config objectThe Config object holds some of the servlet's initial data
TOMCAT+JSP does not support Chinese displayReason:1 Tomcat internal settings, HTML and HTML files not supported in ChineseNo Chinese code is set in the 2 JSP page
Workaround:1All html,htm files are changed to the JSP suffix and added to the
It programmer development must-all kinds of resources download list, the most complete IT resources in history, personal collection summary. Built-in object features:
1. Provided by the JSP specification and not instantiated by the creator.
2.
It programmer development must-all kinds of resources download list, the most complete IT resources in history, personal collection summary.
Developer ' s Guide:http://docs.cksource.com/ckeditor_3.x/developers_guide
----Java Integration Guide :
A simple exercise, nothing to do with the foreground, using recursion, parameter transfer, database operations, session and character encoding conversion.
Of these, two major problems took some time:
The GetRow () method for a 1.ResultSet object is
The first book of two years learned the JSP, the servlet, and the JavaBean, and put them in a book, so what's the difference between them? Because I am a beginner can only according to their own understanding to talk about their differences, I think
This entry is transferred from the "JSP Advanced Programming" book.I hope you can distinguish between Chu JSP (Java Server Pages) and JS (Java script) after reading this primer.I hope these two documents will be helpful to you........................
If the parameter value is in Chinese when the request parameter is obtained through the requests object, the obtained parameter will be garbled if it is not processed. In JSP, to solve the request parameters are the Chinese garbled situation, can be
Tag: Type project failed to start Lib Res exception div run environment mesAdd the Jsp-api.jar and Servlet-api.jar packages to your project, both of which come from the Tomcat Libs directory, but there is a problem that the two jars will be packaged
The Spring MVC jsp passes parameters to a controller that involves date type data and needs to use a type converter: The author now finds two types of converters that can be used: type one : Implement CONVERT Interface (source data, Target
JSP (Java sever pages): A technique for developing dynamic Web pages (resources).A JSP page is a page that runs on a server, and a JSP page is a class. Writing a JSP is like writing html,jsp allows Java code to be written on the page, and allows
I can see some netizens mentioned this problem and asked for more information. In fact, both of these questions have positive answers, but it is best not to do so.
If all the objects in the session are serialized, you can pass httpsession as a
Redirects an HTML file, JSP file, orProgramSegment.
JSP syntax
Relativeurl"|" Expression%> "}/>
Or
Relativeurl"|" Expression%> "}>
Parametername"
Value = "{Parametervalue| Expression% >}"/> +
Example
Create a new JSP page in myeclipse, in order to make the page display Chinese, we always want to do the page instruction pageencoding = "UTF-8" or pageencoding = "GBK" and other actions, every time you create a page, you need to change it once,
Each request object encapsulates a user request and all request parameters are encapsulated in the request object. Therefore, the request object is an important way to obtain request parameters.
1. Get Request Parameters and request headers
A Web
I. Using requestdispatcher
1. Add the Web. xml file doc application/vnd. MS-word
2. The procedure is as follows:
Response. setcontenttype ("application/X-download"); // set it to download application/X-DownloadString filenamedownload = "/system
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