Hi Nilesh,
You need to learn a bit.. Better say this way
The above variable behaves as a local variable, as it will be
available inside the [B]
service()[b] method. You wont
be able to access this variable if you have declared a method
in JSP. where as...
In this case, the variable behaves as a member variable. It will be
available thruout the JSP, and even you can access this variable
in any of you method defined in JSP. It has
scope in the JSP in
which it is declared as well as in in the static include files i.e.
include using
but not
available to dynamic include i.e.
.
I hope this clears the doubt.
Regards
Goodieguy