Welcome, my friends.
Welcome to this section.
In this section, we will deal with important symbolic objects, namely two objects, the symbolic config
and the solar context.
First, we'll go through the tittie of what actually a Soviet country is and where it is used, as well
as how so context is used and how and what are the other factors that we will decide between so config
and some context.
So we will do the Tyrepac part first and then we will do a practical application.
We'll create to select and recheck how solar config is different from some context.
So let us get it to the 30 Berkovic.
First, we'll start with Soviet country, so Soviet country is an object containing some initial barometer's
or configuration information created by this Soviet container and passed the Soviet during initialization,
the first thing to understand is Soviet conflict is an object which is created during initialization
by the Soviet is created by this Soviet container.
Now, where is it used?
It is used for creating a for getting the initial barometer's or to get some configuration information.
Configuration information can be the name of the subject.
Or if you want to get the Soviet context, these are the configuration informations.
The initial parameters are set in the segment and those parameters to this Soviet config.
We will do this later so you'll understand it better.
But this is the definition of the Soviet config.
Soviet config is for a particular subject.
Now, this is an important concept.
Soviet conflict is for a particular subject.
That means one should store servlet specific information in some of them using this object.
So for every servlet, that is a separate servlet config, OK, that's what you have to understand.
Now, let's go to the next slide to how to get this object.
How to get subnet config from your table from the public will actually be subnet has got a method called
get servlet config.
You can use get subnet config to get this object config and uses of subnet config get init barometer's
which is set in between.
The production will be set using tags.
We set the init parameter tag the use and we set the parameters and we get these parameters from this
Soviet config.
Get it back to me.
That is there's a method called getting a parameter and we get it to this Soviet config.
So this is one of the uses of Soviet config, the other use of reconfigures.
If you want to get configuration details like select name or the subnet context itself, you can get
the Silicon X from the Soviet config config object that's created during the initialization lifecycle
phase of this subnet.
OK.
Now, let us go to the next step, which is the subject context for the Soviet context is the object
created by Soulik container.
Again, the subnet container creates this object config as well as this other context, the shared initial
parameters, same thing as config you can share and you should have barometer's or configuration information
for the whole application, not just a particular subject, but the entire application.
Also, villagers can share one servlet context and so comes to the next point, which is the importance
of the context.
Object is only one.
So the config for every subject that is a subject, config merfolk subject context that is only one
subject context and is used by different subjects is shared by different subjects of the application.
So the scope is entire application.
Okay, let's go to the next slide.
How to get this object will be servlet has got this object method called get subnet context so you can
get that from get some context from the A.P. servlet plus or you can get it from your silverleaf config,
from eSolar config object.
Also you can get some context.
Which of you choose is fine.
Now the uses of servlet context just get in it parameter of application scope, not just select scope
but applications scope from the same as this object config.
You set it in the next segment and then but you get it in the application scope so that all the subjects
are shedding this init barometer.
Whatever you need to shit that needs to be in the subject, context, uses of unsubtly, context and
other use of context.
This is also important and we will discuss about this later when we talk about active use and barometer's
get sick and remove active use of application school to share data between Soler's, you use attributes
and these attributes can be set and then set by one set set by one servlet and get by another subnet
or you remove the attribute.
So all these facilities are available to the subject context.
But now you should not get sick.
Remove attributes of application scope can be done in this subject context.
No.
Let us go to the differences that we have seen between this config and this subject context.
The first difference is the civil conflict is subject specific.
I told you already servlet conflict is every subject will have one subject conflict so that it is a
subject specific.
So a context just for the whole application, which means.
All the servlet are shedding a single it's context, second point is barometers of Soviet conflict at
present as they value bear in in its bottom servlet.
So this is a specific technical thing.
And we do this actually good.
We will see that we are using the tag inside this bag and how we configure the parameters in the public
country.
Barometers of servlet context of present doesn't value betting on the bottom, which is outside of servlet
and inside.
This is because it's an application by a wide, wide object.
So it will be in the Web app, not in a particular subject.
And here public confidence will be established because it is specific to the examiner.
OK, servlet config object is talking about getting by Gex of config method.
This I have already told you so.
The context object is maintained by servlet connection method.
This also happened to use servlet config and only one subnet needs information shared by OK and use
servlet context when whole application needs information shared by the.
If you want many subnets to share the same data, then use of the context if if we're only required
for one servlet use of the country.
OK, so this is what I wanted to tell you about the conference of the context.
This is what we are doing in this lecture.
In the next lecture we will start creating servlet conflicts and so on and not Bueso.
Next we will create and we will see how these differences can be seen in an application in using a servlet
config and subject context.
OK, thank you.