JSP declarations Syntax

JSP declarations must be placed between <%! and %> declaration delimiters. The general form of a declaration is shown here:

<%! declaration; [declaration;]+...%>

Example :-


<%! Date now = new Date(); %>
<%!
private int calculate(int a, int b) {
...
}
%>

No comments:

Post a Comment