jsp学习笔记之:4种基本语法
一. jsp注释:
<%-- js注释 --%>
二. jsp声明:
<%!
public int count;
public String test(){return "jsp study";}
%>
三. jsp输出表达式:
<%!
public int count;
public String test(){return "jsp study";}
%>
<%=count%> 输出一个变量/常量
<%=test()%> 输出一个函数的返回值
四. jsp脚本:
<%
for(int i=0;i<10;i++){
%>
jsp study<br>
<%
}
%>