Prentice Hall and Sun Microsystems. Personal use only; do not redistribute.
A.12 Including Files and Applets in JSP Documents
537
XML Syntax
  Usual syntax: 
<%@ page attribute="value" %>
<%@ page import="java.util.*" %>
  XML equivalent: 
A.12Including Files and Applets in JSP 
Documents
Including Files at Page Translation Time
<%@ include file="Relative URL" %>
  Changing included file does not necessarily cause retranslation of JSP 
document. You have to manually change JSP document or update its 
modification date. Convenient way:
<%   Navbar.jsp modified 3/1/00   %>
<%@ include file="Navbar.jsp" %>
Including Files at Request Time
  Servlets can use 
include
 method of 
RequestDispatcher
 to 
accomplish similar result. See Section 15.3.
  Because of a bug, you must use .html or .htm extensions for included 
files used with the Java Web Server.
Applets for the Java Plug In: Simple Case
  Regular form: 

        WIDTH=475 HEIGHT=350>
  JSP form for Java Plug in: 
            code="MyApplet.class"
            width="475" height="350">
Attributes of jsp:plugin
All attribute names are case sensitive; all attribute values require single or
double quotes.
  type: for applets, this attribute should have a value of 
applet
. 
Second edition of this book: www.coreservlets.com; Sequel: www.moreservlets.com.
Servlet and JSP training courses by book's author: courses.coreservlets.com.






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

jsp web hosting

 

Our partners: PHP: Hypertext Preprocessor Best Web Hosting Java Web Hosting Jsp Web Hosting Cheapest Web Hosting

Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved