java - thymeleaf submit button code -
Can anyone explain how to use the Timileff button to work in the following code? Submit? All of the following can be found in this page. By the first look, I can say that
& lt ;! DOCTYPE html & gt; & Lt; Html lang = "en" xmlns: th = "http://www.thymeleaf.org" layout: decorator = "master" & gt; & Lt; Top & gt; & Lt; Title & gt; LoginPage & lt; / Title & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; H1 & gt; Login page & lt; / H1> & Lt ;! - You place any content in a piece below - will appear on the page - & gt; & Lt; Div class = "container" & gt; & Lt; Div class = "row" & gt; & Lt; Div class = "span8" & gt; & Lt; Pth: if = "$ {loginError}" & gt; Wrong user or password & lt; / P & gt; & Lt; Form th: action = "@ {/ new}" th: object = "$ {messageForm}" method = "post" & gt; & Lt; Label = "user" & gt; Username & lt; / Label & gt; & Lt; Input type = "text" th: field = "* {user}" /> gt; & Lt; Br / & gt; & Lt; Label = "password" & gt; Password & lt; / Label & gt; & Lt; Input type = "password" th: field = "* {password}" /> gt; & Lt; Br / & gt; & Lt; Input type = "submit" value = "login" /> & Lt; / Form & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; / Body & gt; & Lt; / Html & gt;
& lt; Form & gt; The template is provided as a standard form with a
Comments
Post a Comment