From the course: Java EE: Servlets and JavaServer Pages (JSP)

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Register user: Behind the scenes

Register user: Behind the scenes

From the course: Java EE: Servlets and JavaServer Pages (JSP)

Start my 1-month free trial

Register user: Behind the scenes

- [Instructor] So, let's pick up from where we left off. We were about to run this project, but before that a small point. We also have to write the doGet method in the servlet. And this method's sole objective is to get us to the register.html file. And the strategy that we want to use is exactly calling the same method that we did before. So, what I'm going to do is, I'm going to say String page. I am going to call that getHTMLString method. I'm going to pass the file path using the servlet context. And the place holder for the message right now is nothing. It's going to be empty when the page loads for the first time. So, I'm just going to do that and then take the response object and write this entire thing back to the client. Right? We also need to do one more thing. The database out is ready with me and when we finally run these changes we are going to come to the database and see that the user indeed got inserted into the user's table. So, let's go ahead and deploy these…

Contents