ExtJS, though powerful, is difficult to debug. It was a great effort but eventually succeeded. A summary of the skills of the learning knowledge I will be summarized in the next blog post. Now it's time to stick to the code.
Servlet Code (note I
Calling through JavaScript
First step: Copy the FCKeditor resource folder to Webroot
Step two: fetching JavaScript files
Step three: Output code for JavaScript calls.
Method One: Create and enter an editor.
Method Two: Replace a testarea element
Web.xml: This type of writing is problematic in IE browser. "Show friendly HTTP error prompts" must be ticked off in the IE tools-> Internet Options-> "advanced"; but we can't control the client's browser 404 /error404.jsp 500 /error500.jsp ------
Idea: Use JavaScript to modify the form's action path, and then start form's submit () Event Submission Form
JS Code
function Action1 () {
document. Mform.action= "action1.action";//modify Path
document. Mform.submit ();//Commit form[name=mfrom]
The value of the action attribute of the form label in the JSP form, which is the path to the method in the Action Class (path), is known to be related to the path in struts's configuration file, which has the code to load the struts profile in
Question: Using the servlet, how to handle a servlet forwarding page style loss problem in a multipath page jump. (For example, when you visit http://localhost/project/listUser.action and go to http://localhost/project/user/listUser.jsp, the browser
One of the JSP contents appears as follows, and in eclipse, the JSP problem as shown in the title Javax.servlet.jsp.PageContext cannot is resolved to a type:
Online Search, the solution is to to , it will not appear this problem, but
Declaring an expression .
is a local variable.
The servlet is a single example. So the variables defined by declaring an expression have only one copy and are shared by the user client.
******************
When using the JSP's the
Practicing the piano when the riff called a small piece of music, then I define the program's riff is a small piece of the program, put some of these days to write their own, later also long-term update, as their own accumulation and future
Format the string type in the JSP page to the specified type
The javabean corresponding to the database table is stored in string type. Because the JSP page is displayed in the form of "2017-07-3 00:00:00.0", I want to display it as "2017-07-3"
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
Basis:
One. Introduction to JSP 1. Understanding: Java server page; Embed Java scripting language in HTML2. Compare servlet and JSP1 The servlet is suitable for business processing, and JSP is suitable for interface display2 The JSP file will
How the JDK environment can be configured to find Tomcat online can also be downloaded to, no longer repeat the open MyEclipse
The following interface appears
Choose your own work space, I choose to be
C:\users\administrator\desktop[2016-03-07][blog]
The problem of garbled characters after turning pages
JSP page:
Many times we have set the code for the project for UTF-8, can or will appear garbled problem, today I do a page pass the garbled problem, consulted the cloning, the results
when using AJAX to send an asynchronous request path in a JSP, beginners are difficult to control. It is recommended to use JSP built-in C tag library.
Add on page header:
Request server, modify quantity.function sendupdatequantity (ID,
What is a session?
Session represents a client-to-server conversation
The session in the Web refers to the amount of time that a user has spent browsing a website, from entering the site to the browser closing, that is, the time it
Modify the \ conf \ WEB. xml file in the Tomcat directory and find the followingCode: JSP org. Apache. Jasper. servlet. jspservlet fork false xpoweredby false 3 Add the following line of code between JSP org. Apache. Jasper. servlet. jspservlet 3:
In JS functions, the form. action cannot jump to the target servlet. You can use alert () to determine the step in the function and the result is complete. If the path is wrong or the servlet ing is incorrect, the check will be correct for a long
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.