Hello, my friends, welcome to this lecture.
In this lecture, we will attach servlet episodes in Eclipse so that when we click on, say, SCDP,
so let EPA or ask you to be response request, we go to the respective class.
So how are we going to do this?
Let's get into that task.
First, we go into the Eclipse browser here.
We have created so little practical in the previous lecture, we'll open this project, will open Java
sources, will open source here.
We have created and gone lots of little package, lots of little package lifecycle steps to our Java.
We'll double click this and we will see HDB.
So will press control over only to be servlet and left click and we see that this message comes source
not found change attached source.
So this was the problem that we were facing in the previous lecture and we'll try to fix this in this
lecture.
So let's get going.
We start, we open a browser, we start by opening a browser.
I'm using Firefox.
We open Google dot com.
In such tight servlet.
Bash, EPA, not jar source Donald Sauce.
Down or so, this one and we subject.
The first link that we get from w w w w w dot com, this is the site www.youtube.com Download Jawa.
So like three point zero sources to start, John.
So let's do that.
No, we here, it's his Jova ex soulik, your 401k, so it's only 21 can be downloaded.
It'll go to your downloads for you to save save the file and it has been shipped.
Now you open the file in zip code.
Press extract to back to.
Yeah, this FALDER.
Now we go to that Florida.
It's in downloads.
And this is it, jaba x servlet 2.0 sources go back to the directory is joik, so let's keep our sources
jotter one.
It's don't look for today.
So now we go back through our eclipse, OK, and go back to our eclipse, less control over their own
destiny to be solid left, click it and click change attached to source, change attached to the source.
And here reselect external location.
External location.
Right.
And we see external file.
Now, next on file, a watered down lords who little jealous of their sources and take this fight.
This is the job fight.
Remember the zip file?
You have to take the fight to Java.
So let sources executable your file and you say open and we say, OK, and we get a piece of glass.
This is the class this is how it looks like this is the code that we've been not able to access earlier.
Now we are able to access it very much.
Let me just show you one thing over here.
Let me show you.
The service method that the service method is this is a good method to do that method service method
and.
Here you go.
This is the service method.
It takes a request, it takes a response similar to a do get underdo post that also takes out a question
of response.
So you just basically forwards it to either to get a budget and do the work is actually done by to get
a dubost service.
Does the configuration and all those things in this house, for example, here you can see that the
method, if it equals to method get over to the get method, then it will do it right and as it will
go for something else they say like that.
So this is what I wanted to show you in this lecture, how to attach, attach your source, we can also
check one more thing that is the subject response on request that we are able to access it.
So we click it.
Yes, we are able to access it.
So now we will be able to access the servlet API.
OK, so this is it for this lecture.
In the next lecture we will conclude this program that we are making the lifecycle steps and we will
actually do the steps.
We will see in what order lifecycle methods are called by the container.
Thank you.