2

I am using a spring form tag

<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>

<form:input path="name.lastName" cssClass="text" maxlength="30"/>

When I try to add the new required html5 attribute

<form:input path="name.lastName" required="required" cssClass="text" maxlength="30"/>

I get this error message when the jsp is converted to html

<pre>org.apache.jasper.JasperException: /WEB-INF/pages/admission/registration/patientForm.jsp(168,5) PWC6131: Attribute required invalid for tag input according to TLD

Are the springframework tags ready for html 5 ? If yes, how do i use them ?

I am using spring 2.5

Frank
  • 698
  • 8
  • 16

1 Answers1

1

Ok so I researched a bit more and I found out that I need to upgrade to spring mvc 3.

Frank
  • 698
  • 8
  • 16
  • I don't believe Spring form tags has compatibility with the 'required' tag yet. If you look in the TLD it is not a valid input – alwinc Dec 30 '12 at 13:04