From the course: Spring: Spring MVC

Unlock the full course today

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

Add exception handler in Controller

Add exception handler in Controller

From the course: Spring: Spring MVC

Start my 1-month free trial

Add exception handler in Controller

- [Instructor] The next step is to add the spring form tags for the login page. Let's go back to the IDE. You already have the form tag library declaration done before on the register page. So we're going to pick it up from there. Let's go to register.jsp. If you go right at the top on line number two, just going to take that line, copy, go to login JSP, right at the top again, and paste that. So we have the form tag library of spring I will label now, and we can convert our login form for using the spring's form tag library tags. So let's do that transformation quickly. This will be form:form. Those two attributes can be the same. This will change to form input, and instead of name we should be attaching the path attribute. Similarly, this one for the password will change the same way and this will become path. At the end, let's close the form tag properly. So there we go. We've transformed the basic input…

Contents