Yesterday I raised the issue of using lomboz3 plug-in to debug JSP in eclipse3. My friends gave me a lot of help. After debugging, I finally solved the problem. Although the problem is very simple, however, I still do not dare to enjoy it here. I
These are the things I found during my learning or online. Maybe you seem to be mentally retarded, but it is not the same for a person you just came into contact. If you are not a newbie, stop watching it again.
1. Problems Encountered during JSP
When browsing a webpage, we often enter a webpage that may not exist on the server, but we do not want to use the error handling page provided by the server to define a 404 error handling page for ourselves, this is also more lively and interesting .
Today, when I used the jstl tag library in JSP, I encountered a very disgusting problem. I remember when I took this course at school a few years ago, I have never encountered this kind of problem. It's really disgusting to see it now.
Generally,
I often see JSP beginners asking how to configure JSP, Servlet, and bean in Tomcat. So I summarized how to configure JSP, Servlet, and Ben in Tomcat, hoping to help beginners.
I. Development Environment Configuration
Step 1: Download j2sdk and
Is to put the first JSPProgramThe background section in is encapsulated in the JavaBean. In my opinion, the JavaBean is the same as the OCX control in ASP. It is concise and easy to use. It is a Java class used by JSP, which is essentially no
First, let's look at the directory structure.
-- + Login---------- + WEB-INF----------------------- + Classes-Beans-Tags----------- + TLDsLogin is the JSP file in the main directory. In the example login. jsp, loginfailed. jsp, login_form.jsp,
1. Compile the servlet class.
This is just a simple servlet. in actual application, it may need to be complicated.Code.
The above is a simple implementation of using eclipse to generate classes. This class only overrides the doget method of
Today, I encountered a problem that has not been solved successfully yet. Is it because struts is not perfect in the tag library. For example, if a Courseware list is displayed on the page, you can operate the data in the last column, as shown below:
I modified the ictclas4j Chinese word segmentation system a few days ago and called it in JSP. when loading the dictionary, the path problem occurs. The call method is to instantiate the Java class in JSP, call the Java class method to complete
Reference a good article on the network
Implementation Principles of servlet, JSP, and axis WebService
Review the servlet ing mode.
As we know, servlets are inherited from javax. servlet. http. httpservlet, loaded to the JVM on the server side
1. Generally, define a member variable in the action, and then provide the get/Set Method for this member variable. The value of this variable can be obtained on the JSP page.
1) define member variables in action
// Define a member variable
Transfer from: dynamic network Production Guide www.knowsky.comFor example, how to configure environment variables and How to Run Servlet? There are too many such problems. Now I want to write a beginner entry, so that it can be helpful for
In my graduation project, I put all the jsp pages in the WEB-INF folder. However, a problem occurs. WEB-INF is a protected folder, and we cannot access the resources in it through the regular method, that is, if we write the following code in
1. Questions about Image Upload failure
First import the jar packageCommons-fileupload-1.2.2.jar, ueditor. jar
Modify editor_config.js
Find and modify the URL to window. UEDITOR_HOME_URL | "/mypro/ueditor/". mypro is the name of my project.
Modify
Json is easy to understand and fast to transmit. And can be well integrated with javascript.
Without adding jar, jsp paging can be well completed.
The following describes paging instances:
Effect: jsp + servlet Technology
First: Write A javaBean
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