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
1, JSP Expression & JSP program section need to pay attention to a few details: (1) JSP expression can not use ";" End (2) No more than one statement in the JSP
(3) The content in the JSP expression must be a string type, or it must be converted to
JSP form submission data appears garbled
The question was really tangled for many days. It's too complicated. Said is related to the JSP file storage format, and decoding format, as well as the browser's decoding format.
1. The internet said a lot
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
Basic syntax for JSP:
1. JSP expression: Provides a way to directly calculate the Java variable or expression to the client's simplified way, it will output the variable
Or an expression is encapsulated directly in the .
2. Methods:
Object
* Emphasis content *javaweb Project JSP load static resources appear Chinese garbled
First of all, I introduce myself in the code encountered a garbled problem: JSP page load, load the static resources of Chinese name, appear garbled, naturally get
Recently encountered a problem, in the JSP page export Excel, only export 1 lines no garbled, export 2 lines of time, there are garbled, and then I have a list of exports, in the penultimate 2nd column when garbled, online search materials, have not
In a Web project, pass parameters to another JS file from a JS file
1, first JS file to add the parameters to the second JSP URL behind, this way the parameters to the second JSP, such as the following code:
2, in the second JSP through the
JSP
summary of issues in which pages cannot be refreshed or prevented from refreshing If you want the form to refresh when you select, delete, modify, and so on, you need to add: window.returnvalue=0. such as leadership/leader_ctl.jsp
Why JSP pages are static.
The so-called JSP page static refers to the dynamic JSP page generated static HTML page, through the direct access to the generated HTML to obtain and access JSP the same display content and application functions.
JSP or
One, servlet developmentThe user enters a URL in the browser and returns, and the browser sends an HTTP request to the server. The server-side program accepts the request, processes the request, and then sends a response. The browser receives a
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:
1. For example, to obtain the value of the username attribute stored in the session, you can use the following methods:Session. getattribute ("username") gets the value of username,Use the following method in El:$ {Sessionscope. Username}
2. For
There are two pages, A. jsp and B. jsp. A. jsp has a submit operation, and B. jsp is the action of the submit operation,
In. add to the JSP page. On ie6.0,. the content of the JSP window is changed to B. JSP, and. JSP content addition will be
We have been studying JSP for a long time. We have summarized a little basic knowledge in the process and used it to share it with beginners until we finally made a small project, Pet Hospital, jcreater4.0, our simplest tool, was used to do this. Oh,
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