Welcome, my fiance.
Welcome to this lecture in this lecture will continue with the spectacle that we started in the previous
lectures, in the previous lecture theatre, the theater configuration information about the possibilities
that we want to create an art exhibit.
Now we will create the two.
So let's actually also after creating these two, Sulligent will render so much to see the difference
between solid, concrete and solid context, which is the purpose of this whole lab exercise.
So let us get into the eclipse.
So in eclipse, we go to our project, so looking at practical and we're going to source of lapse of
look, I've already created the employer, so the gentleman and the focus of the name of employer subletter,
Java, not just met.
Here, the subject employs some, like Plassnik and the welcome Soulet plus name is the same as workaholic
Najara.
So I have created these two separate names using the same name given in them.
Except now I open in place of little Java and in place of little Java I have created in Dugit.
I've created these few lines of code.
You might want to look into it and step by step to see what happens in each of the.
The first two lines are very common, they are common to almost all tablets and we have seen these lines.
First, we set the content type of text and then we clear the print paper out to output into the stream.
So we get the response to that.
So these two are common.
Next step, we create civil conflict using the gets configured method.
So this is this gets servlet config method and we get this subject config because of this from the servlet
config we use to get in it by the meter method.
And you say, Eemian, this is the same as.
He meant to imply a solid and blase subject, so we said exactly same name, whatever is in the bottom
here, that exactly sensitive email, we use it and get in it about a meter e-mail.
So we get the email and we're supposed to what we are supposed to get, they're supposed to get this
value.
See you at employer dot com in the case of employer subject because it's think you're not going to fix
next, you use context.
So let's get some context.
So in config be used to get some config in context.
You get some context, some context, and then we use the company name and we gave the company name
from the application.
Right.
Context.
We're just going to start getting by the company again the next minute we're done.
And we would see that we have created a context about a company with seed capital.
And you've used the same case sensitive company with seed capital.
Nobody had testing when we get a barometer.
So essentially config also has to get its parameter.
Context also has to get it right.
But there are different different areas in the report.
OK, so after this, we have an e-mail which we got from config and outdoor printing company name,
which we got from context, the same lines, same gorg, same piece of code exists in the book usability.
Also in the book in the get method will get better.
We go through the same same steps.
The code is identical, similar config, similar context, and then I'll email all the print of it company
name.
So this is how the subject will look like employee subject and they will book us on it.
No letters run each of you.
So let's see what the difference is between them.
So literally, I click on this island server.
Finish what he started over, OK?
So let's see if this Actimel fight we just come across, David.
I open it.
Using Firefox.
And I get this was the employers of literature and art and I get the email address of the employer,
which is the employer, dot com CEO and employer dot com, and the name of the company is US Unlimited.
And this is what we expected.
Let us see what happens when we give workers some.
Right, click on this server.
See, the same thing that comes from the Soulik Civic.
In Firefox.
So this opens and now we get employee, dot com engineer, dot employee, dot com as the email address
and the company name is the same because it is application rated for me to say so.
This is the workers at work and the locus of Lexa's the e-mail, the same e-mail that Capitally gives
engineer at employee dot com and the same email with gabardine you CEO, your employer dot com.
Because there's this configurability.
This is specific to the subject and we have defined it not acceptable for each of the subjects.
We have defined email addresses, different email addresses, but the application right company name
is the same Cordeaux Unlimited Inc Gordo's identity.
So this difference I want to show you between servlet context and Soulik config.
See you in the next lecture.
I wanted to tell you this concept.
This is what this intersection was all about.
Now, I'll see you in the next section.
Thank you.