Source Code Cross Referenced for JspPage.java in  » 6.0-JDK-Core » Servlet-API-by-tomcat » javax » servlet » jsp » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Home
Java Source Code / Java Documentation
1.6.0 JDK Core
2.6.0 JDK Modules
3.6.0 JDK Modules com.sun
4.6.0 JDK Modules com.sun.java
5.6.0 JDK Modules sun
6.6.0 JDK Platform
7.Ajax
8.Apache Harmony Java SE
9.Aspect oriented
10.Authentication Authorization
11.Blogger System
12.Build
13.Byte Code
14.Cache
15.Chart
16.Chat
17.Code Analyzer
18.Collaboration
19.Content Management System
20.Database Client
21.Database DBMS
22.Database JDBC Connection Pool
23.Database ORM
24.Development
25.EJB Server
26.ERP CRM Financial
27.ESB
28.Forum
29.Game
30.GIS
31.Graphic 3D
32.Graphic Library
33.Groupware
34.HTML Parser
35.IDE
36.IDE Eclipse
37.IDE Netbeans
38.Installer
39.Internationalization Localization
40.Inversion of Control
41.Issue Tracking
42.J2EE
43.J2ME
44.JBoss
45.JMS
46.JMX
47.Library
48.Mail Clients
49.Music
50.Net
51.Parser
52.PDF
53.Portal
54.Profiler
55.Project Management
56.Report
57.RSS RDF
58.Rule Engine
59.Science
60.Scripting
61.Search Engine
62.Security
63.Sevlet Container
64.Source Control
65.Swing Library
66.Template Engine
67.Test Coverage
68.Testing
69.UML
70.Web Crawler
71.Web Framework
72.Web Mail
73.Web Server
74.Web Services
75.Web Services apache cxf 2.2.6
76.Web Services AXIS2
77.Wiki Engine
78.Workflow Engines
79.XML
80.XML UI
Java Source Code / Java Documentation » 6.0 JDK Core » Servlet API by tomcat » javax.servlet.jsp 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


01        /*
02         * Copyright 2004 The Apache Software Foundation
03         *
04         * Licensed under the Apache License, Version 2.0 (the "License");
05         * you may not use this file except in compliance with the License.
06         * You may obtain a copy of the License at
07         *
08         *     http://www.apache.org/licenses/LICENSE-2.0
09         *
10         * Unless required by applicable law or agreed to in writing, software
11         * distributed under the License is distributed on an "AS IS" BASIS,
12         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13         * See the License for the specific language governing permissions and
14         * limitations under the License.
15         */
16        package javax.servlet.jsp;
17
18        import javax.servlet.*;
19
20        /**
21         * The JspPage interface describes the generic interaction that a JSP Page
22         * Implementation class must satisfy; pages that use the HTTP protocol
23         * are described by the HttpJspPage interface.
24         *
25         * <p><B>Two plus One Methods</B>
26         * <p>
27         * The interface defines a protocol with 3 methods; only two of
28         * them: jspInit() and jspDestroy() are part of this interface as
29         * the signature of the third method: _jspService() depends on
30         * the specific protocol used and cannot be expressed in a generic
31         * way in Java.
32         * <p>
33         * A class implementing this interface is responsible for invoking
34         * the above methods at the appropriate time based on the
35         * corresponding Servlet-based method invocations.
36         * <p>
37         * The jspInit() and jspDestroy() methods can be defined by a JSP
38         * author, but the _jspService() method is defined automatically
39         * by the JSP processor based on the contents of the JSP page.
40         *
41         * <p><B>_jspService()</B>
42         * <p>
43         * The _jspService()method corresponds to the body of the JSP page. This
44         * method is defined automatically by the JSP container and should never
45         * be defined by the JSP page author.
46         * <p>
47         * If a superclass is specified using the extends attribute, that
48         * superclass may choose to perform some actions in its service() method
49         * before or after calling the _jspService() method.  See using the extends
50         * attribute in the JSP_Engine chapter of the JSP specification.
51         * <p>
52         * The specific signature depends on the protocol supported by the JSP page.
53         *
54         * <pre>
55         * public void _jspService(<em>ServletRequestSubtype</em> request,
56         *                             <em>ServletResponseSubtype</em> response)
57         *        throws ServletException, IOException;
58         * </pre>
59         */
60
61        public interface JspPage extends Servlet {
62
63            /**
64             * The jspInit() method is invoked when the JSP page is initialized. It
65             * is the responsibility of the JSP implementation (and of the class
66             * mentioned by the extends attribute, if present) that at this point
67             * invocations to the getServletConfig() method will return the desired
68             * value.
69             *
70             * A JSP page can override this method by including a definition for it
71             * in a declaration element.
72             *
73             * A JSP page should redefine the init() method from Servlet.
74             */
75            public void jspInit();
76
77            /**
78             * The jspDestroy() method is invoked when the JSP page is about to be
79             * destroyed.
80             * 
81             * A JSP page can override this method by including a definition for it
82             * in a declaration element.
83             *
84             * A JSP page should redefine the destroy() method from Servlet.
85             */
86            public void jspDestroy();
87
88        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.