Deletions are marked like this. | Additions are marked like this. |
Line 3: | Line 3: |
Line 4: | Line 5: |
=== Include directive === |
''' Include directive ''' {{{ |
Line 7: | Line 8: |
}}} | |
Line 9: | Line 11: |
=== Include action === |
''' Include action ''' {{{ |
Line 11: | Line 14: |
}}} | |
Line 13: | Line 17: |
=== JSTL import === |
''' JSTL import ''' {{{ |
Line 16: | Line 21: |
}}} | |
Line 17: | Line 23: |
== Writing a value == '''Expressions''' {{{ <%= stringBean %> <%= objectBean.someMethod() %> }}} |
A convenient, but not complete, reference for JSPs TableOfContents
Includes
Include directive
<%@ include file="filename.jspf" %>
includes jsp fragment textually at translation (to servlet) time.
Include action
<jsp:include page="page.jsp" flush="true" />
dynamically includes at runtime.
JSTL import
<c:import url="./copyright.html"/> <c:import url="http://www.somewhere.com/hello.xml"/>
dynamically includes from anywhere at runtime.
Writing a value
Expressions
<%= stringBean %> <%= objectBean.someMethod() %>