Using ServletInclude to Insert JSP and Servlets

To insert JSP or Servlets using the servletInclude component:

  1. In the Design Structure Window of the desired file, locate the node in which you wish to insert an external HTML file (e.g., header).
  2. In the Component Palette, select Include Components from the dropdown list, and then drag and drop the servletInclude component to the parent node of your choice.

    The Insert dialog opens.

  3. In the dialog, enter a value for the required source property, e.g., jspDemo.jsp.

Note: To use data binding, see Data Binding a Component Attribute.

Example (UIX XML)


This is the file that has the servletInclude component:

...
<pageLayout title=""> 
  ...
  ...
  <contents>
    <header text="Example of included JSP/Servlet Content">
      <contents>
        <servletInclude source="jspDemo.jsp"/>
      </contents>
    </header>
    ...
  </contents>
</pageLayout>
...    

About ServletInclude
About Include
About UrlInclude

Using Include to Insert UIX XML Content
Using UrlInclude to Insert HTML Content
Working with Include Components

 

Copyright © 1997, 2004, Oracle. All rights reserved.