Install JDK
First, install JDK. My JDK is installed in the C drive. The JDK root directory is C:/Java/jdk5.
Then configure the environment variableRight-click my computer> Properties> advanced> Environment Variables
Find the path "variable"
1. share data between different pages or usersShare data between different pages for the same user* Save the data in the session;1) Scope = "session" of JavaBean ";2) setattribute () and getattribute () of the session ();* Cookie;1) New cookie ()
Problem:
What is a container?
What is a JSP Container?
What is the role of JSP containers?
What is a JSP engine?
Analysis:
These problems are the same. They all describe how JSP or servlet objects are managed or run.
Answer:
First, we
Data sharing between JSP and Servlet (data transmission and data calling) (1) the most common way for JSP (PAGE) to transmit data to servlet: transmit data using form parameters or URL hyperlink parameters (previously mentioned ). (2) servlet
// JSCode
// Export to excelFunction automateexcel (){VaR eltable = Document. getelementbyid ("datatable"); // the ID of the table to be exported.VaR orangeref = Document. Body. createTextRange ();Orangeref. movetoelementtext (eltable
In the MVC mode, PHP can be used to build pages directly at the view layer and HTML language mixing,
You can also perform data processing and process control tasks on the Controller layer, compute data in the controller, and then pass the data to
Many experts may not solve this problem, but I think it is still necessary for beginners to study this problem for a while, so I recorded it.
Problem description:
After you add a JSP file to the eclipse program, the entire project will
This article does not describe what struts is, nor do you want to introduce the magic of Struts. It only discusses how to configure struts and use struts.
Learning Materials: http://struts.apache.org/2.1.6/index.html
If you need to understand the
Document directory
I. FCKeditor Introduction
Ii. Download
Iii. deployment configuration
Iv. Test page
I. FCKeditor Introduction
FCKeditorIs a WYSIWYG text editor dedicated to open source on the web page. It is lightweight and can be used
1. Hide the field transfer value:
">
2. url transfer value:Use button
A.
'"
Value = "Modify distributor"/>
B. Set the onclick = "modifyregion ()" of input ()"
Function
Link value:
Button value: Onclick = "window. Location. href = 'hello. jsp '" value = "hello"/>
Click the hello Link (or button) and jump to the hello. jsp page. Pass the goodsid variable on this page and use the variable ID on the page. jsp page.
Objective: l master the basic process of client verification; l master the JSP output information; l master the basic usage of jstl. Main Content: l introduce the basic process of client verification through an instance; l introduce the basic
Literally, both of them have meanings. In terms of running results, the functions of the two are similar, but the running process of the two is quite different.
the command is the compile-time syntax, that is, when compiling, copy the content of
Objective: To understand how to share the database connection code, use preparesatement, configure and use the database connection pool, and analyze the database access process, encapsulate the database access process into dbbean; l modify the user.
This article describes JSP code exceptions, Java code exceptions, you can refer to another article: http://blog.csdn.net/JavaEETeacher/archive/2007/03/19/1533754.aspx
To handle possible exceptions of JSP programs, you can do so from multiple
When opening a file, the file encoding is determined by the file header.
Streamreader sr = new streamreader (@ "F:/cym/temp/1.txt ");Sr. currentencoding // return code
All regions in the world have local languages. Regional differences
In fact, I am a newbie, But I have spent a lot of time solving this problem and made a lot of detours, so I don't want everyone to be like me.In general, in order to facilitate development and code reuse, the Code connecting to the database in JSP
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.