Http://www.chinaunix.net Author: echoguo published on: 13:22:31
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.
Step 1: Download j2sdk and tomcat:
Abstract class
Implements Some of the methods in the Servlet interface (Init,destroy)
HttpServlet
Inherits the Genericservlet abstract class, mainly implements the service method
JSP (Java Server page)
(1) JSPis what?Sunthe company developed a server-side dynamicPageTechnical Specifications.Note: JSPis a. JSPForsuffix of the file,the contents of the document are mainlyHTML
Js|servlet
SummaryThis paper introduces the implementation framework of a web-based management information system. With the Jsp/servlet technology and MVC design pattern, the development process is more flexible and easier to maintain.
Key WordsManagement Information System, JSP,
Servlet and JSP can be passed between two types of values: JSP-> Servlet, Servlet-> JSP.
Use the Object request and session (regardless of application) to complete the value transfer.
I. JSP
Servlet and JSP, servletjspServlet and JSP can be passed between two types of values: JSP-> Servlet, Servlet-> JSP.Use the Object request and session (regardless of application) to complete the value transfer.I.
1. IntroductionManagement Information System (MIS) is a system composed of people and computers that can collect, transmit, store, process and use information. With the development of science and technology and the expansion of information, enterprise informatization has become one of the effective means for enterprises to remain undefeated in the competition. MIS not only provides information and data in a timely and comprehensive manner, simplifies statistics, and provides different reports fo
The following through an illustrated way to introduce Javaweb to implement the user login registration function Instance code, take a look at it.
Introduction of Servlet+jsp+javabean development model (MVC)
Servlet+jsp+javabean mode (MVC) is suitable for the development of complex web applications, in which the
Relationship between JSP and Servlet and between JSPServlet
Relationship between JSP and Servlet
Jsp Introduction
1. JSP (Java Server Pages) is a dynamic resource on the JavaWeb Server. It serves the same purpose as html Pages,
JSP is the same as the servlet nature. JSP is embedded in the Java code in html, the servlet is embedded in the Java code HTML.After Tomcat gets the JSP page, in the work directory, it converts it to the Servlet's Java file (such as hello.jsp--->hello_jsp.java), and then com
. This address is parsed on the server (different from the relative address in HTML and JavaScript, they are parsed by the client browser) That means the relative address in JSP and Servlet should be relative to your web application, that is, relative to http: // 192.168.0.1/webapp.
Where it is used:
Forwarder: request in servlet. getrequestdispatcher (Address);
There are two main types of VE ve:Page, allows you to do something similar to import classes, define servlet Superclass), mso-hansi-font-family: "">, etc;Include, which allows you to insert a file into the servlet class when the JSP file is translated as a servlet ).
I. JSP
JAVA basics: differences between JSP and Servlet-general Linux technology-Linux programming and kernel information. For details, refer to the following section. What is the difference between JSP and SERVLET in the application? Many people are confused. Let me say a few things. Simply put, SUN first developed the
Recently in the interview, found some questions about servlet/jsp, memory is a bit vague, so do a little of this summary as follows:1, the difference between servlet and GCI?A: The servlet is written in Java, in a server process, it can run the service () method in a multithreaded manner, one instance can serve multipl
The "1" JSP is compiled into a servlet the first time it is run and resides in memory for invocation."2" JSP is a Web development technology, Servlet is a server-side application of small programs, when we visit a JSP page, the server will turn this
This is a problem I encountered when I reviewed web programming at the end of today and other problems subsequently exploded. Although I am only familiar with these Java and JSP languages, however, the question is just self-explanatory. There may be a lot of errors, and the time is limited. We need to complete the test report. Put it here first, and wait until we find the answer before making a correction. If you have any friends who know this knowled
Servlet appearance
Servlet technology and JSP technology are two main technologies used to develop Web applications using Java language. In 1996, Sun released Servlet technology for the first time to solve the performance problems in Web applications. When the servlet is fir
The development of Jsp+javabean two-storey structure should be more familiar and better understood.
But one thing must be clear is the user through the browser to send a Web page request, the request to the server after the server to find the corresponding page, if it is the first request (the second do not have to explain the implementation), for JSP to generate a ser
Js|servlet PS: Here is how to paste HTML, so I have to format the text!
Path State test
Objective
Test JSP jumps to each other, servlet jumps the state of the absolute path and relative path under the JSP environment
To find a common solution
Resources
The war package that was made
Mywar
Make up a file
The redirection Technology of JSP/servlet is summarized as follows:
1. requestdispatcher. Forward ()
Is used on the server. When forward () is used, the servlet engine transmits the HTTP request from the current servlet or JSP to another
The first book of two years learned the JSP, the servlet, and the JavaBean, and put them in a book, so what's the difference between them? Because I am a beginner can only according to their own understanding to talk about their differences, I think JSP is like a company's front desk staff, to long good, so that customers feel more comfortable at a glance, he is
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.