Deletions are marked like this. | Additions are marked like this. |
Line 2: | Line 2: |
[[TableOfContents]] | <<TableOfContents>> |
Line 5: | Line 5: |
* [http://java.sun.com/products/jsp/tags/11/tags11.html Sun's JSP Syntax Reference] | * [[http://java.sun.com/products/jsp/tags/11/tags11.html|Sun's JSP Syntax Reference]] |
Line 7: | Line 7: |
* [http://www.jadecove.com/jstl-quick-reference.pdf Jade Cove JSTL Quick Reference] (13-page pdf) by Bill Siggelkow * [http://www.manning-source.com/books/bayern/bayern_apxA.pdf JSTL Reference] (20-page pdf) by Shawn Bayern, from ''JSTL in Action'' (ISBN:1930110529) * [http://www.phptr.com/articles/article.asp?p=30946&rl=1 The JSTL Expression Language] by David M. Geary, from ''Core JSTL: Mastering the JSP Standard Tag Library'' (ISBN:0131001531) |
* [[http://www.jadecove.com/jstl-quick-reference.pdf|Jade Cove JSTL Quick Reference]] (13-page pdf) by Bill Siggelkow * [[http://www.manning-source.com/books/bayern/bayern_apxA.pdf|JSTL Reference]] (20-page pdf) by Shawn Bayern, from ''JSTL in Action'' (ISBN:1930110529) * [[http://www.phptr.com/articles/article.asp?p=30946&rl=1|The JSTL Expression Language]] by David M. Geary, from ''Core JSTL: Mastering the JSP Standard Tag Library'' (ISBN:0131001531) |
Line 11: | Line 11: |
* [http://struts.apache.org/struts-taglib/dev_bean.html Bean] taglib * [http://struts.apache.org/struts-taglib/dev_html.html HTML] taglib |
* [[http://struts.apache.org/struts-taglib/dev_bean.html|Bean]] taglib * [[http://struts.apache.org/struts-taglib/dev_html.html|HTML]] taglib |
A convenient, but not complete, reference for JSPs
Contents
Other References
- JSTL
Jade Cove JSTL Quick Reference (13-page pdf) by Bill Siggelkow
JSTL Reference (20-page pdf) by Shawn Bayern, from JSTL in Action (1930110529)
The JSTL Expression Language by David M. Geary, from Core JSTL: Mastering the JSP Standard Tag Library (0131001531)
- Struts tags
Includes
Include directive http://java.sun.com/products/jsp/tags/11/syntaxref11.fm6.html
<%@ include file="filename.jspf" %>
includes jsp fragment textually at translation (to servlet) time.
Include action http://java.sun.com/products/jsp/tags/11/syntaxref11.fm11.html
<jsp:include page="page.jsp" flush="true" />
dynamically includes at runtime.
JSTL import http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/c/import.html
<c:import url="./copyright.html"/> <c:import url="http://www.somewhere.com/hello.xml"/>
dynamically includes from anywhere at runtime.
Writing a value
Expressions http://java.sun.com/products/jsp/tags/11/syntaxref11.fm4.html
<%= stringBean %> <%= objectBean.someMethod() %>
Jakarta struts bean tag http://struts.apache.org/struts-taglib/tagreference-struts-bean.html
<bean:write name="someBean" property="propertyName" /> <!-- write the property itself --> <bean:message name="someBean" property="propertyName" /> <!-- write the value from the --> <!-- message bundle, using the --> <!-- property as the key -->