Init servlet parameter
- When you create servlet you have to provide begin information for servlet.This information is called init param.These init param is gotten from method init(servletconfig config).Note that,these init is placed in config file,but not in code.
- So,to create a servlet you need to make the following steps.
+ Create servlet.
+ Override method init() with parameter config.
+Finnaly,to get init config you use statment:config.getInitparam().

No comments:
Post a Comment