Reputation: 2201
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" %>
}
%>
Upvotes: 1
Views: 94
Reputation: 162801
Try it like this:
<% for(int i=0;i<10;i++){Upvotes: 1