JSp
- 格式:doc
- 大小:66.00 KB
- 文档页数:13
jsp作用JSP(Java Server Pages)是一种用于服务器端动态网页开发的Java技术。
它兼容Java语言,提供了一种将Java代码嵌入到HTML页面中的方法,从而使得开发者可以在网页上编写Java程序,实现服务器端的动态处理和交互。
JSP的作用主要体现在以下几个方面:1. 动态生成网页内容:JSP可以根据用户的请求和服务器端的处理逻辑,动态生成网页内容,为用户提供个性化的信息。
通过嵌入Java代码,可以在网页中调用Java对象和方法,从而实现数据的处理和动态的网页内容展示。
2. 与数据库交互:JSP可以与数据库进行交互,实现数据的增删改查操作。
开发者可以使用Java的数据库访问接口(如JDBC)来连接数据库,并在JSP中编写相应的SQL语句进行数据库操作。
通过JSP,可以方便地将数据库中的数据展示在网页上,或者接收用户输入的数据并存储到数据库中。
3. 处理用户请求:JSP可以响应并处理用户的请求。
当用户通过网页提交表单或者点击某个链接时,JSP能够获取用户提交的数据,进行相应的处理,并给用户返回结果。
通过JSP的内置对象和标签库,可以获取用户的输入、验证数据的合法性、调用业务逻辑进行处理,并最终返回生成的网页或结果。
4. 实现动态网页效果:JSP支持HTML和CSS等前端技术,通过嵌入相应代码和标签库,可以实现各种动态效果。
比如,可以在网页中嵌入JavaScript代码来处理用户的交互行为,通过CSS样式来美化页面的外观,或者使用JSTL(JSP标准标签库)提供的标签来简化页面的逻辑处理。
5. 实现MVC架构:JSP常常被用作MVC(Model-View-Controller)架构中的视图层。
在MVC模式中,JSP负责展示数据和用户交互界面。
它可以接收来自控制器的数据,进行处理和逻辑判断,然后生成相应的页面展示给用户。
通过使用JSP,可以将业务逻辑和视图逻辑进行分离,从而提高代码的可维护性和可扩展性。
jsp教案JSP教案一、教学目标:1. 了解JSP的基本知识和使用方法。
2. 掌握JSP中的标签和表达式的使用。
3. 能够编写简单的JSP页面。
二、教学重难点:1. JSP的基本概念和工作原理。
2. JSP中的标签和表达式的使用。
三、教学过程:1. 导入教师可通过简单介绍HTML和Servlet的知识,引入JSP的概念。
2. 概念讲解(1)什么是JSP?JSP是JavaServer Pages的缩写,是一种用于开发动态Web页面的技术。
它将HTML和Java代码融合在一起,使得开发人员可以在页面中嵌入Java代码,动态生成页面内容。
(2)JSP的工作原理当客户端请求一个JSP页面时,Web服务器将请求转发给JSP 引擎。
JSP引擎先将JSP文件转化为Java Servlet,然后编译和执行这个Servlet,最终生成响应的HTML页面,再返回给客户端。
3. 标签和表达式(1)JSP中的标签标签是JSP中用于插入Java代码的标记。
常用的标签有:<% %>、<%= %>和<%! %>。
<% %>用于插入Java代码,它们中的代码在JSP页面执行时会被执行。
<%= %>用于输出Java代码的结果,将结果插入到页面中。
<%! %>用于定义全局成员变量或方法。
(2)JSP中的表达式表达式是JSP中用于计算值的语句。
表达式通常放在<%= %>标签中,用于计算变量或函数的值。
4. 编写简单的JSP页面(1)创建一个JSP文件,命名为hello.jsp。
(2)在JSP文件中编写HTML代码,包括一个标题和一个表单。
(3)在表单中插入一段JSP代码,用于处理用户输入的数据。
(4)保存并部署JSP文件,将其放置在Web服务器的指定目录下。
(5)在浏览器中访问JSP文件,观察页面效果。
四、教学策略:1. 解决问题在教学过程中,鼓励学生提问和解决问题,加深对JSP的理解。
jsp课程设计一、课程目标知识目标:1. 理解JSP(Java Server Pages)的基础知识,掌握其基本语法和结构。
2. 学会使用JSP内置对象,如request、response、session等,并能应用于实际项目中。
3. 掌握JSP与JavaBean、Servlet的交互方法,了解MVC设计模式在JSP中的应用。
4. 了解JSP的数据库连接技术,掌握JDBC的使用,能够实现基本的数据库操作。
技能目标:1. 能够运用JSP技术开发简单的动态网页,实现用户与网站的交互。
2. 培养学生分析问题、解决问题的能力,使其能够根据项目需求设计合理的JSP页面。
3. 提高学生的编程实践能力,通过编写JSP代码,实现功能模块的搭建。
情感态度价值观目标:1. 培养学生对JSP编程的兴趣和热情,激发他们主动探索的精神。
2. 培养学生良好的编程习惯,注重代码的规范性和可读性。
3. 培养学生的团队协作意识,使其在项目开发中能够与他人有效沟通,共同完成任务。
分析课程性质、学生特点和教学要求:1. 本课程为计算机专业或相关专业的学科,要求学生具备一定的Java基础。
2. 学生为高中年级,具有较强的逻辑思维能力,但实践经验不足。
3. 教学要求注重理论与实践相结合,强调学生的动手实践能力。
二、教学内容1. JSP基础语法与结构- JSP页面基本结构- JSP脚本元素- JSP指令与动作元素- JSP内置对象介绍2. JSP内置对象与应用- request对象的使用- response对象的使用- session对象的使用- application对象的使用- 其他内置对象(如out、page、config等)3. JSP与JavaBean、Servlet的交互- JavaBean的概念及使用- Servlet的生命周期与基本方法- JSP、JavaBean、Servlet之间的数据传递与调用4. MVC设计模式在JSP中的应用- MVC模式的概念与作用- JSP中实现MVC模式的方法- 案例分析与实践5. JSP数据库连接与操作- JDBC基本概念与使用方法- 数据库连接池技术- 常用数据库操作(查询、插入、更新、删除)- JSP与数据库的综合应用案例教学内容安排与进度:1. JSP基础语法与结构(2课时)2. JSP内置对象与应用(3课时)3. JSP与JavaBean、Servlet的交互(4课时)4. MVC设计模式在JSP中的应用(3课时)5. JSP数据库连接与操作(4课时)教材章节关联:1. JSP基础语法与结构(教材第1章)2. JSP内置对象与应用(教材第2章)3. JSP与JavaBean、Servlet的交互(教材第3章)4. MVC设计模式在JSP中的应用(教材第4章)5. JSP数据库连接与操作(教材第5章)三、教学方法1. 讲授法:- 对于JSP的基础知识、语法和内置对象等理论性较强的内容,采用讲授法进行教学。
什么是jsp1、什么是jsp呢?实际上jsp就是⼀个servlet在html页⾯中嵌⼊我们的java脚本jsp的执⾏过程1、翻译阶段jsp在进⾏请求的时候会先被翻译成java⽂件2、编译阶段在将java⽂件编译成.class⽂件3、执⾏将处理之后的结果推送到我们的页⾯进⾏展⽰如果我们jsp页⾯第⼆次访问直接加载编译好的.class⽂件,如果说第⼆次加载整整个⽂件,它修改了会再次进⾏翻译,在编译在执⾏2、jsp页⾯元素组成1、page指令作⽤:设置内部的多个属性定义整个页⾯的属性设置的属性在整个页⾯都可以使⽤2、⼩脚本和表达式⼩脚本: <% ⼩脚本 ---java代码 %>表达式: <%= %> 你可以堪称是输出语句3、静态内容HTML静态⽂本4、指令:以“<%@ ” 开始,以“%> ” 结束5、声明 --⽅法的声明<%! ⽅法 %>6、注释<%-- 客户端不能查看到 --%>2、jsp中使⽤jdbc访问数据库需求:查询学⽣表信息展⽰到我们的jsp页⾯ jsp+jdbc 采⽤三层架构⽅式采⽤的是三层架构的格式1、将我们⽤的三层架构的包打出来2、编写我们的basedaoz直接将我们之前写好的basedao拿过来使⽤3、编写我们的实体对象(student)public class StudentEntity {private int stuId;private String stuName;private String gender;private int age;private Date birthday;private int studentNO;private int ClassID;private String city;private String email;public int getStuId() {return stuId;}public void setStuId(int stuId) {this.stuId = stuId;}public String getStuName() {return stuName;}public void setStuName(String stuName) {this.stuName = stuName;}public String getGender() {return gender;}public void setGender(String gender) {this.gender = gender;}public int getAge() {return age;}public void setAge(int age) {this.age = age;}public Date getBirthday() {return birthday;}public void setBirthday(Date birthday) {this.birthday = birthday;}public int getStudentNO() {return studentNO;}public void setStudentNO(int studentNO) {this.studentNO = studentNO;}public int getClassID() {return ClassID;}public void setClassID(int classID) {ClassID = classID;}public String getCity() {return city;}public void setCity(String city) {this.city = city;}public String getEmail() {return email;}public void setEmail(String email) {this.email = email;}}4、编写dao层接⼝//查询学⽣表中所有信息public List<StudentEntity> getStuList(String sql);5、编写dao接⼝实现PreparedStatement pst = null;ResultSet rs = null;@Overridepublic List<StudentEntity> getStuList(String sql) {//声明⼀个最终返回的集合List<StudentEntity> stulist = new ArrayList<StudentEntity>(); //连接数据库Connection connection=BaseDao.getConnection();//执⾏sql--先产⽣⼀个PreparedStatementtry {pst = connection.prepareStatement(sql);rs = pst.executeQuery(); //拿到结果集while(rs.next()) {//声明⼀个学⽣对象StudentEntity student = new StudentEntity();student.setStuId(rs.getInt("stuId"));student.setStuName(rs.getString("stuName"));student.setAge(rs.getInt("age"));student.setCity(rs.getString("city"));stulist.add(student);//将对象添加到集合中}} catch (SQLException e) {e.printStackTrace();}return stulist;}6、编写service接⼝//查询student表所有信息public List<StudentEntity> findAll();7、编写service接⼝实现//实例化dao层对象StudentDaoImpl StudentDao = new StudentDaoImpl();@Overridepublic List<StudentEntity> findAll() {//编写查询sqlString sql = "select * from studentinfo";//调⽤dao层中的查询⽅法List<StudentEntity> userlist =StudentDao.getStuList(sql);return userlist;}8、编写jsp---stuinf.jsp将我们学⽣信息展⽰到页⾯中<%@page import="java.util.List"%><%@page import="com.dzqc.testStu.entity.StudentEntity"%><%@page import="com.dzqc.testStu.service.impl.StudentServiceImpl"%> <%@ page language="java" contentType="text/html; charset=UTF-8"pageEncoding="UTF-8"%><!DOCTYPE html><html><head><meta charset="UTF-8"><title>Insert title here</title></head><body><table border="2" align = "center"><caption>学⽣信息列表</caption><tr><td>学号</td><td>姓名</td><td>年龄</td><td>城市</td></tr><!-- 读取业务层数据 --><%//实例化业务层对象StudentServiceImpl studentServiceImpl = new StudentServiceImpl();//调⽤查询学⽣多有的信息⽅法// List<StudentEntity> stulist =studentServiceImpl.findAll();List<StudentEntity> stulist = studentServiceImpl.findAll();for(int i = 0 ; i<stulist.size();i++){StudentEntity stu =stulist.get(i);%><tr><td><%=stu.getStuId() %></td><td><%=stu.getStuName() %></td><td><%=stu.getAge() %></td><td><%=stu.getCity() %></td></tr><%}%></table></body></html>。
jsp工作原理是什么
JSP(Java Server Pages)是一种基于Java技术的动态网页开发技术,其工作原理如下:
1. 首先,Web服务器接收到一个请求,该请求需要由JSP处理。
例如,一个用户在浏览器中输入了一个URL,指向一个JSP页面。
2. 服务器接收到请求后,JSP引擎将请求传递给JSP编译器。
JSP编译器将JSP页面编译成一个Java Servlet。
3. 编译得到的Java Servlet代码被JSP引擎加载到内存中,并创建一个实例对象。
4. 每当有一个新的请求到达时,服务器会创建一个新的线程来处理该请求。
该线程会调用JSP的_service()方法来处理请求。
5. 执行服务方法时,JSP引擎将生成的Servlet代码逐行解释执行。
JSP页面中的Java代码会被转换成Java语句,这些语句会在运行时被执行。
6. JSP引擎将动态生成的内容转换为HTML,并将响应返回给客户端。
客户端可以是浏览器,也可以是其他应用程序。
总结来说,JSP工作原理是将JSP页面转换为Java Servlet,并由Java Servlet来处理请求和生成动态的内容。
通过动态生成的HTML,JSP能够根据不同的请求生成不同的响应。
什么是jsp方法JSP(JavaServer Pages)是Java技术的一种服务器端动态网页开发技术,它允许开发人员在HTML页面中嵌入Java代码,以动态生成网页内容。
JSP方法是在JSP页面中定义的一段代码块,用于处理页面逻辑和业务操作。
在本篇文章中,我将详细介绍JSP方法的概念、用法、特点以及与其他技术的比较。
首先,我们来了解JSP方法的概念。
JSP方法是在JSP页面中定义的一段Java 代码块,通过JSP标记(<% %>)将该代码块嵌入到HTML页面中。
这样,开发人员可以在JSP页面中编写Java方法,用于处理从前端页面表单传递过来的数据、访问数据库、计算业务逻辑等。
JSP方法具有良好的可重用性和扩展性,可以用于处理不同的业务需求。
JSP方法的用法可以分为两个方面,即定义和调用。
首先,我们需要在JSP页面中定义方法。
这可以通过在<% %>标记中编写Java代码来实现。
例如,我们可以定义一个方法用于接收用户输入的参数,并返回处理结果。
然后,在需要调用该方法的地方使用<%= 方法名(参数) %>来调用方法。
除了调用方法之外,我们还可以在JSP页面中使用标准的Java语法,如条件语句、循环语句等。
JSP方法具有许多特点,使得它在开发中具有广泛的应用。
首先,JSP方法具有良好的封装性和可重用性。
开发人员可以将功能相似的代码封装成方法,便于维护和复用。
其次,JSP方法具有良好的可扩展性。
开发人员可以根据业务需求定义新的方法,或者对现有方法进行修改和扩展。
此外,JSP方法还具有良好的可读性和维护性。
由于JSP方法的代码是嵌入在HTML页面中的,使得开发人员可以轻松地理解和修改代码。
最后,JSP方法还可以与其他Java技术(如Servlet、JavaBean等)结合使用,相互调用和传递数据,提供更加强大和灵活的功能。
与其他技术相比,JSP方法具有一些独特的优势和不足。
JSP Technology Conspectus And Specialties The JSP (Java Server mix) technology is used by the Sun microsystem issued by the company to develop dynamic Web application technology. With its easy, cross-platform, in many dynamic Web application programming languages, in a short span of a few years, has formed a complete set of standards, and widely used in electronic commerce, etc. In China, the JSP now also got more extensive attention, get a good development, more and more dynamic website to JSP technology. The related technologies of JSP are briefly introduced.The JSP a simple technology can quickly and with the method of generating Web pages. Use the JSP technology Web page can be easily display dynamic content. The JSP technology are designed to make the construction based on Web applications easier and efficient, and these applications and various Web server, application server, the browser and development tools work together.The JSP technology isn't the only dynamic web technology, also not the first one, in the JSP technology existed before the emergence of several excellent dynamic web technology, such as CGI, ASP, etc. With the introduction of these technologies under dynamic web technology, the development and the JSP. TechnicalJSP the development background and development historyIn web brief history, from a world wide web that most of the network information static on stock transactions evolution to acquisition of an operation and infrastructure. In a variety of applications, may be used for based on Web client, look no restrictions.Based on the browser client applications than traditional based on client/server applications has several advantages. These benefits include almost no limit client access and extremely simplified application deployment and management (to update an application, management personnel only need to change the program on a server, not thousands of installation in client applications). So, the software industry is rapidly to build on the client browser multi-layer application.The rapid growth of exquisite based Web application requirements development of technical improvements. Static HTML to show relatively static content is right choice, The new challenge is to create the interaction based on Web applications, in these procedures, the content of a Web page is based on the user's request or the state of the system, and are not predefined characters.For the problem of an early solution is to use a CGI - BIN interface. Developers write to interface with the relevant procedures and separate based on Web applications, the latter through the Web server to invoke the former. This plan has serious problem -- each new extensible CGI requirements in a new process on the server. If multiple concurrent users access to this procedure, these processes will use the Web server of all available resources, and the performance of the system will be reduced to extremely low.Some Web server providers have to provide for their server by plugins "and" the API to simplify the Web application development. These solutions are associated with certain Web server, cannot solve the span multiple suppliers solutions. For example, Microsoft's Active Server mix (ASP) technology in the Web page to create dynamic content more easily, but also can work in Microsoft on Personal Web Server and IIS.There are other solutions, but cannot make an ordinary page designers can easily master. For example, such as the Servlet Java technologies can use Java language interaction application server code easier. Developers to write such Servlet to receive signals from the Web browser to generate an HTTP request, a dynamic response (may be inquires the database to finish the request), then send contain HTML or XML documents to the response of the browser.note: one is based on a Java Servlet Java technical operation in the server program (with different, the latter operating in the Applet browser end). In this book the Servlet chapter 4.Using this method, the entire page must have made in Java Servlet. If developers or Web managers want to adjust page, you'll have to edit and recompile the Servlet Java, even in logic has been able to run. Using this method, the dynamic content with the application of the page still need to develop skills.Obviously, what is needed is a industry to create dynamic content within the scope of the pages of the solution. This program will solve the current scheme are limited. As follows: can on any Web server or applications.will application page displays and separation.can rapidly developing and testing.simplify the interactive development based on Web application process.The JSP technology is designed to meet such requirements. The JSP specification is a Web server, application server, trading system and develop extensive cooperation between the tool suppliers. From this standard to develop the existing integration and balance of Javaprogramming environment (for example, Java Servlet and JavaBeans) support techniques and tools. The result is a kind of new and developing method based on Web applications, using component-based application logic page designers with powerful functions.Overall Semantics of a JSP PageA JSP page implementation class defines a _jspService() method mapping from the request to the response object. Some details of this transformation are specific to the scripting language used (see Chapter JSP.9, “Scripting”). Most details are not language specific and are described in this chapter.The content of a JSP page is devoted largely to describing the data that is written into the output stream of the response. (The JSP container usually sends this data back to the client.) The description is based on a JspWriter object that is exposed through the implicit object out (see Section JSP.1.8.3, “Implicit Objects”). Its value v aries:Initially, out is a new JspWriter object. This object may be different from the stream object returned from response.getWriter(), and may be considered to be interposed on the latter in order to implement buffering (see Section JSP.1.10.1, “The page Directive”). This is the initial out object. JSP page authors are prohibited from writing directly to either the PrintWriter or OutputStream associated with the ServletResponse.The JSP container should not invoke response.getWriter() until the time when the first portion of the content is to be sent to the client. This enables a number of uses of JSP, including using JSP as a language to “glue” actions that deliver binary content, or reliably forwarding to a servlet, or change dynamically the content type of the response before generating content. See Chapter JSP.4, “Internationalization Issues”.Within the body of some actions, out may be temporarily re-assigned to a different (nested) instance of a JspWriter object. Whether this is the case depends on the details of the action’s semantics. Typically the content of these temporary streams is appended to the stream previously referred to by out, and out is subsequently re-assigned to refer to the previous (nesting) stream. Such nested streams are always buffered, and require explicit flushing to a nesting stream or their contents will be discarded.If the initial out JspWriter object is buffered, then depending upon the value of the autoFlush attribute of the page directive, the content of that buffer will either be automatically flushed out to the ServletResponse output stream to obviate overflow, or an exception shall be thrown to signal buffer overflow. If the initial out JspWriter is unbuffered, then content written to it will be passed directly through to the ServletResponse output stream.A JSP page can also describe what should happen when some specific events occur. In JSP 2.1, the only events that can be described are the initialization and the destruction of the page. These events are described using “well-known method names” in declaration elements..JavaScript is used for the first kind is browser, the dynamic general purpose of client scripting language. Netscape first proposed in 1995, but its JavaScript LiveScript called. Then quickly Netscape LiveScript renamed JavaScript, Java developers with them from the same issued a statement. A statement Java and JavaScript will complement each other, but they are different, so the technology of the many dismissed the misunderstanding of the two technologies.JavaScript to create user interface control provides a scripting language. In fact, in the browser into the JavaScript code logic. It can support such effect: when the cursor on the Web page of a mobile user input validation or transform image.Microsoft also write out their JavaScript version and the JScript called. Microsoft and Netscape support JavaScript and JScript around a core characteristics and European Manufacturers is.md by (ECMA) standards organization, the control standard of scripting language. ECMA its scripting language ECMAScript named.Servlets and JSPs often include fragments of information that are common to an organization, such as logos, copyrights, trademarks, or navigation bars. The web application uses the include mechanisms to import the information wherever it is needed, since it is easier to change content in one place then to maintain it in every piece of code where it is used. Some of this information is static and either never or rarely changes, such as an organization's logo. In other cases, the information is more dynamic and changes often and unpredictably, such as a textual greeting that must be localized for each user. In both cases, you want to ensure that the servlet or JSP can evolve independently of its included content, and that the implementation of the servlet or JSP properly updates its included content as necessary.You want to include a resource that does not change very much (such as a page fragment that represents a header or footer) in a JSP. Use the include directive in the including JSP page, and give the included JSP segment a .jspf extension.You want to include content in a JSP each time it receives a request, rather than when the JSP is converted to a servlet. Use the jsp:include standard action.You want to include a file dynamically in a JSP, based on a value derived from a configuration file. Use the jsp:include standard action. Provide the value in an external properties file or as a configuration parameter in the deployment descriptor.You want to include a fragment of an XML file inside of a JSP document, or include a JSP page in XML syntax. Use the jsp:include standard action for the includes that you want to occur with each request of the JSP. Use the jsp:directive.include element if the include action should occur during the translation phase.You want to include a JSP segment from outside the including file's context. Use the c:importThe operation principle and the advantages of JSP tagsIn this section of the operating principle of simple introduction JSP and strengths.For the first time in a JSP documents requested by the engine, JSP Servlet is transformed into a document JSP. This engine is itself a Servlet. The operating process of the JSP shown below:(1) the JSP engine put the JSP files converting a Java source files (Servlet), if you find the files have any grammar mistake JSP, conversion process will interrupt, and to the server and client output error messages.(2) if converted, with the engine JSP javac Java source file compiler into a corresponding scale-up files.(3) to create a the Servlet (JSP page), the transformation of the Servlet jspInit () method was executed, jspInit () method in the life cycle of Servlet executed only once.(4) jspService () method invocation to the client requests. For each request, JSP engine to create a new thread for processing the request. If you have multiple clients and request the JSP files, JSP engine will create multiple threads. Each client requests a thread. To execute multi-thread can greatly reduce the requirement of system resources, improving the concurrency value and response time. But also should notice the multi-thread programming, due to the limited Servlet always in response to memory, so is very fast.(5) if the file has been modified. The JSP, server will be set according to the document to decide whether to recompile, if need to recompile, will replace the Servlet compile the memory and continue the process.(6) although the JSP efficiency is high, but at first when the need to convert and compile and some slight delay. In addition, if at any time due to reasons of system resources, JSPengine will in some way of uncertain Servlet will remove from memory. When this happens jspDestroy () method was first call.(7) and then Servlet examples were marked with "add" garbage collection. But in jspInit () some initialization work, if establish connection with database, or to establish a network connection, from a configuration file take some parameters, such as, in jspDestory () release of the corresponding resources.Based on a Java language has many other techniques JSP page dynamic characteristics, technical have embodied in the following aspects:One simplicity and effectivenessThe JSP dynamic web pages with the compilation of the static HTML pages of writing is very similar. Just in the original HTML page add JSP tags, or some of the proprietary scripting (this is not necessary). So, a familiar with HTML page write design personnel may be easily performed JSP page development. And the developers can not only, and write script by JSP tags used exclusively others have written parts to realize dynamic pages. So, an unfamiliar with the web developers scripting language, can use the JSP make beautiful dynamic pages. And this in other dynamic web development is impossible.Tow the independence of the programThe JSP are part of the family of the API Java, it has the general characteristics of the cross-platform Java program. In other words, is to have the procedure, namely the independence of the platform, 6 Write bided anywhere! .Three procedures compatibilityThe dynamic content can various JSP form, so it can show for all kinds of customers, namely from using HTML/DHTML browser to use various handheld wireless equipment WML (for example, mobile phones and pdas), personal digital equipment to use XML applications, all can use B2B JSP dynamic pages.Four program reusabilityIn the JSP page can not directly, but embedded scripting dynamic interaction will be cited as a component part. So, once such a component to write, it can be repeated severalprocedures, the program of the reusability. Now, a lot of standard JavaBeans library is a good example.JSP技术简介及特点JSP(Java Server Pages)技术是由Sun公司发布的用于开发动态Web应用的一项技术。