Hi I'm using spring mvc and i look for a way to validate my form at client side, so i found this code of html 5.
<form:input path="login" type="text" required />
I put the required property in input element of my form in my jsp page but i got 500 http error.
Etat HTTP 500 - /WEB-INF/pages/index.jsp (line: 44, column: 48) Symbole égal (equal) attendu
org.apache.jasper.JasperException: /WEB-INF/pages/index.jsp (line: 44, column: 62) Symbole égal (equal) attendu
You should be able to use the required attribute, but with XHTML syntax instead of short HTML syntax:
<form:input required="" .../>
or
<form:input required="required" .../>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With