I don't understand why the first program in JSP is working, but the second program is giving an error:
<% for(int i=0;i<10;i++){
out.print("hello");
}
%>
<% for(int i=0;i<10;i++){
<%= "hello" %>
}
%>
I don't understand why the first program in JSP is working, but the second program is giving an error:
<% for(int i=0;i<10;i++){
out.print("hello");
}
%>
<% for(int i=0;i<10;i++){
<%= "hello" %>
}
%>
Try it like this:
<% for(int i=0;i<10;i++){