22. Discuss the scope of a variable declared in Declaration part and in scriptlet part.

Variable declared inside declaration part is treated as a global variable.that means after convertion jsp file into servlet

  • that variable will be in outside of service method or
  • it will be declared as instance variable.
  • the scope is available to complete jsp and to complete in the converted servlet class.

Variable declared inside a scriplet that variable will be declared inside a service method and the scope is with in the service method.

Advertisements

16 Responses

  1. This is very nice and informative post. I have bookmarked your site in order to find out your post in the future.

  2. Really nice site you have here. I’ve been reading for a while but this post made me want to say 2 thumbs up. Keep up the great work

  3. Thanks for the job. Very interest review.

  4. Admin, thanks for review! Nice job.

  5. Thanks admin. Have a nice day!

  6. Nice review! Good job. thanks

  7. Good staff, thanks for review!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: