Welcome, my friends.
Welcome to this lecture.
In the previous lecture, we have created a Hellweg SilverLink.
In this lecture, we will create the Hello World Steps so that we can have a hello word printed out
on your browser.
So let us start with the steps.
Step number one is to set the mind type of the response.
Now, mind type on the Internet is just like on Windows.
That is five type.
There are different types of files like the files, the files, different types of media files.
Similarly, mind type exists and we will use the type of estimate, we'll use the slash estimates.
It can be text on HDMI and we will use the method set content type to set the mind type of response.
OK, we will do this in eclipse for the time being.
We are going through the Tyrepac.
So say step number two is get the print reader from the response again, from the response object.
We will get the print letter object out.
OK, I wouldn't rule it out.
This print writer object will be then used to use this out object.
The third step is use this out object to print, which is print, and then the method is print DeLynn
into HDMI and it will print not on your screen instead of printing on the screen print on the output
would be an estimate file because we have set the mind type to extend DMAN and also because the print
data comes from the response object.
So the response will contain the body and the body will be consisting of XHTML and out object.
We will be sending print statements to this system in the sense, as I said, this is stimulus and responsibility
as our object comes from the response.
This is basically basic concept of extreme jolliest.
If you don't understand it fully, it's OK.
The first three steps are important.
So let's get going in eclipse and do these steps.
This is our project, so very practical.
Let's open the project.
Let's go to our resources source, Baumgart laptop.
Hello, Lloyd Sublette.
This is Idealogue.
So let's go to the douget method.
This is the to get method here.
Already there is some code written.
Let's remove that board.
It was written automatically because this was generated.
The subject was generated automatically.
So let's remove this court and let us start writing comments about the steps.
So first, what I do is I write comments.
I write comments as in the steps, what I want to achieve, and then I write the actual code.
So we plan first and then execute it.
The first is.
Content.
Mine content type.
Constantine.
Excitement.
OK, then the second step is.
Print writer.
I object.
From response.
Third step is.
Use out.
To Gwendolyn.
Achievement.
So these are the three steps that we also went in the previous slide, no, let us light the gold for
it.
The first step will be check mine content.
They fixed a sheet in.
So in response, object response, dark set.
Response said it's coming back to give some auto solutions where it is taking some time.
Yeah, so it automatically gives some suggestion to suggest this set and then spread control space,
you are getting a lot of things said about is character and thinking.
This is in context.
We are able to get all the options that we want.
This is a nifty feature of Eclipse and we will use it very often.
So this is sick content type, this is what we want.
So we undertake a string, so double click this set content type and the stringers, it should be exactly
like this, the forward slash estimate.
OK, so in response, there is this response, we'll take this statement and set it for this.
This is how we set the content type estimate.
The first it almost always, whenever you will be creating a servlet, this would be the first step.
And the second step would also be to get print data out of old object from response.
The third touch step in most cases would be to print initiative in order to process something from request
and so on and so forth.
So you should remember these steps.
These are basically what are called boilerplate.
We exist in practically every sort of leg that you would that, you know, get printed out from response.
OK, so we'll write print later.
WorldSpace, let's let's go forward.
Any of us out is equal to a response.
Get right to the first one.
Now you'll notice.
Important job, I don't I don't think that has already taken place.
Automatically, it is important the.
Plus printout, no response, don't get right, gets the writer OK, as you can see from here that it
returns print, right?
That's right.
We have written print paper over here.
Exactly.
And gets into print right there.
And we just named the object.
OK, we can name it anything.
We can name it out on anything you want and respons.
Don't get it.
So again, we're using the response object here.
You use the response object to set the content type here, also using the response object on the right
that go to print.
Now we will use the output.
Superintending the estimate, according to hear me out, bring Ellen.
We like this and then we select this.
Control seat.
Control copy paste and create a few lines of ascherman will need a few lines of its criminal code to
be printed.
And so we have four lines, four lines, five animals, five.
And here we are, right, it should be eminent, as you know, Ford.
Closing tax.
And bodyboarding.
Each one is four headed.
One closing tag and in this debate or whatever, what we want to do, right.
Hello?
You can remove this.
We don't need this, so we have used the old.
Dylan, Actimel, first, the next lane body, the next lane, each one had a word, which is first
one and then next line slash body, close to 40 plus extremities.
So this goes into an A.M. fight and it becomes an estimate.
That's how we'll do it.
OK, let's run and see what we have done so far.
Controllers see the fire.
Multiservice service.
Bunker eight point zero seven, local stopcock, Efraim.
So you click on Hello, so did the Java test run on server.
Finnish.
Just in case, if you get this dialog box justiceship.
Yes, I opened the file in Firefox.
And you hit Hellewell word in first, hitting each one, hitting one, you hit so large caps you get.
Hello.
So this is what we wanted to achieve and we have achieved it.
OK.
In the next lecture, in the next lecture, we will go to.
We don't know the reason why you go to protect families, because we are using annotations here, who
do you are mapping here to sing and act, which is an annotation slash hello voice.
So this has become the you are it if you're typing this, as do you after one two seven zero zero one
dark 88 slash hello World Soulik, then you will come to this Soulik and this mapping has been done
through annotations.
In the next lecture you will do it to submit the existing content, thereby enough.
Here's your.
So see you in the next lecture.
Thank you.