<rdf:RDF
    xmlns:s='http://snipsnap.org/rdf/snip-schema#'
    xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'
    xml:base='http://wiki.marandcustomsolutions.com/rdf'>
    <s:Snip rdf:about='http://wiki.marandcustomsolutions.com/rdf#Development/Java+%26+J2EE/JSP'
         s:cUser='mpecher'
         s:oUser=''
         s:mUser='mpecher'>
        <s:name>Development/Java &amp; J2EE/JSP</s:name>
        <s:content>1 &lt;%@ include file=&quot;relativeURL&quot; %&gt;&#xD;&#xA;&amp;nbsp;&amp;nbsp; An include directive inserts a file of text or code in a JSP page at translation time, when the JSP page is compiled. When you use the include directive, the include process is static. A static include means that the text of the included file is added to the JSP page. The included file can be a JSP page, HTML file, XML document, or text file. If the included file is a JSP page, its JSP elements are translated and included (along with any other text) in the JSP page. Once the included file is translated and included, the translation process resumes with the next line of the including JSP page.\\&#xD;&#xA;&amp;nbsp;&amp;nbsp; The included file can be an HTML file, a JSP page, a text file, XML document, or a code file written in the Java programming language. Be careful that the included file does not contain &lt;html&gt;, &lt;/html&gt;, &lt;body&gt;, or &lt;/body&gt; tags. Because the entire content of the included file is added to the including JSP page, these tags would conflict with the same tags in the including JSP page, causing an error.\\&#xD;&#xA;&amp;nbsp;&amp;nbsp; What does this mean? The included file, which should be a fragment, has scope to any variables etc that are in the parent page, since the code is basically included inline.&#xD;&#xA;&#xD;&#xA;1 &lt;jsp:include&gt;&#xD;&#xA;&amp;nbsp;&amp;nbsp;The &lt;jsp:include&gt; element allows you to include either a static or dynamic resource in a JSP page. The results of including static and dynamic resources are quite different. If the resource is static, its content is included in the calling JSP page. If the resource is dynamic, it acts on a request and sends back a result that is included in the JSP page. When the include action is finished, the JSP container continues processing the remainder of the JSP page.\\&#xD;&#xA;&amp;nbsp;&amp;nbsp; You cannot always determine from a pathname if a resource is static or dynamic. For example, http://server:8080/index.html might map to a servlet through a server alias. The &lt;jsp:include&gt; element handles both types of resources, so it is convenient to use when you don&apos;t know whether the resource is static or dynamic.&#xD;&#xA;&amp;nbsp;&amp;nbsp; If the included resource is dynamic, you can use a &lt;jsp:param&gt; clause to pass the name and value of a parameter to the resource. As an example, you could pass the string username and a user&apos;s name to a login form that is coded in a JSP page. </s:content>
        <s:mTime>2007-11-24 20:11:47.0</s:mTime>
        <s:cTime>2006-02-23 14:43:14.0</s:cTime>
        <s:comments
             rdf:type='http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag'/>
        <s:snipLinks>
            <rdf:Bag>
                <rdf:li rdf:resource='#snipsnap-index'/>
                <rdf:li rdf:resource='http://wiki.marandcustomsolutions.com/rdf#Development/Java &amp; J2EE'/>
                <rdf:li rdf:resource='#Development'/>
                <rdf:li rdf:resource='http://wiki.marandcustomsolutions.com/rdf#Version Control Systems/ClearCase/ConfigSpec'/>
                <rdf:li rdf:resource='#snipsnap-search'/>
                <rdf:li rdf:resource='http://wiki.marandcustomsolutions.com/rdf#snipsnap-index/Mac/mac-tips'/>
                <rdf:li rdf:resource='http://wiki.marandcustomsolutions.com/rdf#Linux/Commands'/>
                <rdf:li>
                    <s:Snip rdf:about='http://wiki.marandcustomsolutions.com/rdf#Development/Java+%26+J2EE/JSP'>
                        <s:attachments>
                            <rdf:Bag>
                                <rdf:li>
                                    <s:Attachment rdf:about='http://wiki.marandcustomsolutions.com/space/Development/Java+%26+J2EE/JSP/jstl-quick-reference.pdf'
                                         s:fileName='jstl-quick-reference.pdf'
                                         s:contentType='application/pdf'
                                         s:size='544530'>
                                        <s:date>Sat Nov 24 20:11:47 EST 2007</s:date>
                                    </s:Attachment>
                                </rdf:li>
                            </rdf:Bag>
                        </s:attachments>
                    </s:Snip>
                </rdf:li>
            </rdf:Bag>
        </s:snipLinks>
    </s:Snip>
</rdf:RDF>

