Consider the following example
<%!
String str="Hello"; %> //this becomes instance variable in generated
servlet <% String str="GoodDay"; %>//this becomes local variable in service method
<%= str %>
The result of this is GoodDay.
My question is how do I print the value 'Hello'?