This .shtml file, ServletInclude.shtml, illustrates using WebLogic's ServerSideIncludeServlet functionality to execute a servlet embedded within an HTML page. We use the <servlet> tag with the NAME attribute set to the virtual name of a registered servlet.
To test this file, you'll need to copy it into your document root. We ship the HelloWorldServlet compiled and already registered in your weblogic.properties file with the virual name "helloWorld" to make it easy to see how this works.
The line that includes the file is:
<servlet name=helloWorld> </servlet>
Here's the result of that include: