1 00:00:01,940 --> 00:00:04,730 Hello, my friends, welcome to this lecture. 2 00:00:05,540 --> 00:00:13,250 In this lecture, we will attach servlet episodes in Eclipse so that when we click on, say, SCDP, 3 00:00:13,250 --> 00:00:19,220 so let EPA or ask you to be response request, we go to the respective class. 4 00:00:19,820 --> 00:00:21,010 So how are we going to do this? 5 00:00:21,500 --> 00:00:23,300 Let's get into that task. 6 00:00:28,730 --> 00:00:33,540 First, we go into the Eclipse browser here. 7 00:00:34,580 --> 00:00:41,510 We have created so little practical in the previous lecture, we'll open this project, will open Java 8 00:00:41,540 --> 00:00:43,420 sources, will open source here. 9 00:00:43,430 --> 00:00:48,920 We have created and gone lots of little package, lots of little package lifecycle steps to our Java. 10 00:00:49,310 --> 00:00:52,700 We'll double click this and we will see HDB. 11 00:00:52,700 --> 00:01:01,460 So will press control over only to be servlet and left click and we see that this message comes source 12 00:01:01,460 --> 00:01:03,900 not found change attached source. 13 00:01:04,280 --> 00:01:09,200 So this was the problem that we were facing in the previous lecture and we'll try to fix this in this 14 00:01:09,200 --> 00:01:09,660 lecture. 15 00:01:10,220 --> 00:01:11,390 So let's get going. 16 00:01:11,550 --> 00:01:14,770 We start, we open a browser, we start by opening a browser. 17 00:01:15,440 --> 00:01:16,790 I'm using Firefox. 18 00:01:31,920 --> 00:01:33,360 We open Google dot com. 19 00:01:45,910 --> 00:01:48,760 In such tight servlet. 20 00:01:51,430 --> 00:01:58,900 Bash, EPA, not jar source Donald Sauce. 21 00:02:00,410 --> 00:02:03,620 Down or so, this one and we subject. 22 00:02:04,870 --> 00:02:17,040 The first link that we get from w w w w w dot com, this is the site www.youtube.com Download Jawa. 23 00:02:17,340 --> 00:02:19,900 So like three point zero sources to start, John. 24 00:02:20,140 --> 00:02:21,150 So let's do that. 25 00:02:23,730 --> 00:02:32,780 No, we here, it's his Jova ex soulik, your 401k, so it's only 21 can be downloaded. 26 00:02:32,920 --> 00:02:39,840 It'll go to your downloads for you to save save the file and it has been shipped. 27 00:02:40,770 --> 00:02:43,530 Now you open the file in zip code. 28 00:02:52,170 --> 00:02:55,440 Press extract to back to. 29 00:03:00,860 --> 00:03:01,830 Yeah, this FALDER. 30 00:03:13,030 --> 00:03:14,410 Now we go to that Florida. 31 00:03:21,940 --> 00:03:23,080 It's in downloads. 32 00:03:26,090 --> 00:03:35,360 And this is it, jaba x servlet 2.0 sources go back to the directory is joik, so let's keep our sources 33 00:03:35,360 --> 00:03:36,380 jotter one. 34 00:03:38,110 --> 00:03:39,730 It's don't look for today. 35 00:03:40,150 --> 00:03:49,240 So now we go back through our eclipse, OK, and go back to our eclipse, less control over their own 36 00:03:49,240 --> 00:03:55,510 destiny to be solid left, click it and click change attached to source, change attached to the source. 37 00:03:56,710 --> 00:04:00,280 And here reselect external location. 38 00:04:01,000 --> 00:04:02,320 External location. 39 00:04:02,860 --> 00:04:03,250 Right. 40 00:04:03,910 --> 00:04:06,160 And we see external file. 41 00:04:09,070 --> 00:04:17,570 Now, next on file, a watered down lords who little jealous of their sources and take this fight. 42 00:04:17,980 --> 00:04:19,110 This is the job fight. 43 00:04:19,600 --> 00:04:21,140 Remember the zip file? 44 00:04:21,200 --> 00:04:23,390 You have to take the fight to Java. 45 00:04:23,890 --> 00:04:36,100 So let sources executable your file and you say open and we say, OK, and we get a piece of glass. 46 00:04:37,660 --> 00:04:42,590 This is the class this is how it looks like this is the code that we've been not able to access earlier. 47 00:04:42,920 --> 00:04:45,400 Now we are able to access it very much. 48 00:04:46,270 --> 00:04:48,560 Let me just show you one thing over here. 49 00:04:49,090 --> 00:04:49,960 Let me show you. 50 00:04:51,200 --> 00:05:00,790 The service method that the service method is this is a good method to do that method service method 51 00:05:01,090 --> 00:05:01,940 and. 52 00:05:20,510 --> 00:05:21,170 Here you go. 53 00:05:21,680 --> 00:05:23,060 This is the service method. 54 00:05:28,000 --> 00:05:33,970 It takes a request, it takes a response similar to a do get underdo post that also takes out a question 55 00:05:33,970 --> 00:05:34,530 of response. 56 00:05:34,530 --> 00:05:40,810 So you just basically forwards it to either to get a budget and do the work is actually done by to get 57 00:05:40,810 --> 00:05:42,430 a dubost service. 58 00:05:42,430 --> 00:05:47,260 Does the configuration and all those things in this house, for example, here you can see that the 59 00:05:47,260 --> 00:05:54,700 method, if it equals to method get over to the get method, then it will do it right and as it will 60 00:05:55,390 --> 00:05:58,630 go for something else they say like that. 61 00:06:01,420 --> 00:06:06,790 So this is what I wanted to show you in this lecture, how to attach, attach your source, we can also 62 00:06:06,790 --> 00:06:14,020 check one more thing that is the subject response on request that we are able to access it. 63 00:06:14,860 --> 00:06:16,030 So we click it. 64 00:06:16,180 --> 00:06:17,480 Yes, we are able to access it. 65 00:06:17,480 --> 00:06:19,910 So now we will be able to access the servlet API. 66 00:06:20,720 --> 00:06:23,620 OK, so this is it for this lecture. 67 00:06:23,890 --> 00:06:30,070 In the next lecture we will conclude this program that we are making the lifecycle steps and we will 68 00:06:30,100 --> 00:06:31,480 actually do the steps. 69 00:06:31,480 --> 00:06:37,510 We will see in what order lifecycle methods are called by the container. 70 00:06:38,080 --> 00:06:38,530 Thank you.