posted 22 years ago
1)<%! String myString=”Hello” %>
It needs to have a ; at the end like this
<%! String myString=”Hello”; %>
2) <% String myString=request.getServerName() %>
Same as above the ; is missing
3) <%= out.print(“Hello” %>
<%= means out.print so esssentially
it would be
out.print(out.print("Hello"));
which is not the way how it should be...
4) <%= “Hello” %>
This is the correct one as given by the author.