Welcome my face.
Welcome to this lecture.
In this lecture, we will continue from where we left off in the previous lecture.
We created the we got loose strings username and password using get better username and get better password
in the next step that we wanted to even validate the username and password.
To do that, first, we have to know the right username and password.
Usually we will go to the database and we will get the username and password and and compare it to what
we have got from get parameter.
But in this case, to keep it simple, we will create.
Instance, variables private.
Credit used me and compared to this, a correct username, locatable.
Private string.
And David.
So this is the correct username and password, if you type or does the user name in your login in your
index page, which becomes the home page, which comes if Gordon is the correct username and password
one, two, three as a password, it should be matched correctly.
And you should go to that welcome page.
It should be a successful.
Validating.
Revalidate.
User name, control space and username and password.
If this is true.
Do something and it's.
Something else, so here invalided, it's getting that headline to this cross.
Click it here to create my third validating string double click it, it will create a method.
Private Boolean validated string username.
We'll say user name.
Or you don't even have to its.
In any case, if this doesn't matter to President Fox.
So this is not a matter to validate control s shape.
So if this is validated, then.
We even have a request despatcher created a request, this sheriff.
Yeah, this one despatching.
Ottis, Equador from Request Object.
We will get a question despatcher and we'll give the name of the.
So there will be something so that will be welcome.
Hottest dark waterbird.
Request and response.
So this is work, this is all we do in the Soviet communication.
First step is that from the request we get the request dispatched and we tell you which servlet or which
e-mail file you are sending it.
So we are giving you all of the correct.
So let the successful Soulik Welcome servlet and then we forward it to this request.
Dispatch, dispatch.
It is forwarded to request and response.
So we send the request in response to the welcome.
So let.
That's what we do, OK else, and it's really a game to question inspection, intercellular communication
will always use the first step.
Will use this to clear the request to speak to you by getting it from the request object and then forwarding
it to this public or forwarding it to the admin side.
Which is a static files, a request control space request, dispatcher orders, request the dark and
get.
We go back to the index, not the statement, but maybe this is the next to demonstrate and artist start
forward.
The question response, yes, so.
If it is successful, validation is successful, you send it to welcome Soulik.
If it is otherwise, if it is not successful, you send it back to next door estimate, the step is
first step is the request was dispatched and then put forward that using the request dispatched with
request and response.
So control this.
This is the Lodin.
So this is our login.
So it will look like and we have created our login subnet and the next step we will create are welcome
servlet, which is our success.
So OK.