User is a sub-directory under the root directory of the project.
Before modification
= "/User/left. jsp"Name = "menu">= "/User/Right. jsp"Name = "right">
User/left. jsp"Name = "menu">User/Right. jsp"Name =" right ">
the El expression in JSP is invalid. check the servlet/jsp version used and view the web. if the following content exists at the beginning of XML, it indicates servlet 2.4/jsp 2.0.
xmlns = "http://java.sun.com/xml/ns/j2ee"
Step 1: TLD Function Definition:
First, under the WEB-INF folder under the project folder, see a function-taglib.tld File
This file is actually an XML description file with the following content:
Xmlns: xsi =
Myeclipse sets the default encoding method for JSP pages:
Windows-preferences-myeclipse-files & editors-JSP-encoding on the right: Set to iso000046/Unicode (UTF-8)
In the Java file, myeclipse sets the author, date, and other
How to install and configure JSP servers under Hongqi desktop linux4.1 in the past two days, I have tried to install Web servers under Hongqi Linux Desktop 4.1, I will introduce the installation process as follows for reference by netizens who have
I. garbled characters on the JSP page
2. garbled characters appear when the form is submitted to Chinese
Iii. Database Connection
During the JSP development process, Chinese garbled characters often occur, which may affect you. Now I have
Garbled characters may occur when parameters are passed in the URL on the JSP page.
The solution is as follows:
1. Use the method to change tomcat. This method is simple, but it must be modified at the server software level. If the system is
(1) Introduction to built-in objects
JSP provides some internal objects to simplify page development. These internal objects do not need to be instantiated by JSP writers. They are implemented and managed by containers on all JSP pages.
Internal
255) FF = 255; If (CC> 255) cc = 255; int r = FF + random. nextint (CC-ff); int G = FF + random. nextint (CC-ff); int B = FF + random. nextint (CC-ff); return new color (R, G, B) ;}%>
Since Javascript is not required to strictly control the running of the applet, the code is much simpler than previously:
// Appletaccess. js
// @ Author zenny Chen
Function accessapplet ()
...{
If(window.doc ument. testapplet! = NULL )...{
VaR IP =
Get project path: $ {pagecontext. Request. contextpath}
I. Problems
Whether to use absolute paths or relative paths in JSP is more and more complex with the technology adopted, and this problem becomes increasingly difficult to solve.1) problems
Cookie concept:The cookie format is actually a piece of plain text information, which is sent by the server along with the webpage to the client and saved in the specified directory on the client's hard disk. it is said that cookies may cause
I
1. Insert the following code in server. xml under Tomcat:
Connectiontimeout = "20000"Redirectport = "8443" type = "regxph" text = "yourobjectname"/>
2. Encrypt parameters to be passed in JSP page JS
Encodeuri (PARAM)
2. Write in action
Request.
Author: thesixthday, source: CCID technical community, responsible editor: Li Chunyu,
After receiving the response, the browser no longer needs to render and refresh the entire page. Instead, it only needs to execute this script and update the page
1. DownloadFckeditor2.3 (fckeditot for Java)Fckeditor2.4 (FCKeditor basic file)The following are:Http://www.fckeditor.net/download/default.html
2. Create a project:Create a project tomcat/webapps/testfckeditor.
3. Decompress fckeditor2.4Decompress
. The presentation layer of JSP/jsp bean should be as thin and simplified as possible.. Remember that most JSP pages should be read-only views, and the page bean provides the model.. JSP and JSP bean should be designed together. Remove the business
Since the contact with JSP, we have been constantly encountering various problems, constantly querying information, and constantly exploring. Compared with ASP. NET, JSP gives me the feeling that the development idea is relatively complicated, the
Preface the paging function is inevitable during database usage, but JDBC specifications do not solve this problem well. Many of my friends have their own solutions for this demand. For example, we use a collection class such as vector to save the
I. Overview of JSP built-in objects
Definition:Member variables that can be used in JSP page scripts (Java program fragments and Java expressions) without declaration. In JSP technology, several internal JSP objects have been defined. Applying these
Expression Language)
I. Purpose: To make JSP writing easier.
The expression language is inspired by ecmascript and XPath expressions. It provides methods to simplify expressions in JSP. It is a simple language based on available namespaces
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