2010年5月4日 星期二

JSP: statement


<%@ include file="a.jsp"%>

=

<jsp:directive.include file="a.jsp"/>

<%x=1;%>

=

<jsp:scriptlet>x=1;</jsp:scriptlet>

<%=x%>
=

<jsp:expression>x</jsp:expression>

<jsp:usebean id="fruit type ="String"/>
=

<jsp:usebean id="fruit type ="String" beanName="Fruit"/>

JSP: attributes of page directive

The following are legal attributes of page directive -

  1. import

  2. isThreadSafe

  3. session

  4. contentType

  5. autoFlush

  6. extends

  7. info

  8. errorPage

  9. isErrorPage

  10. language