我想在我的jsp中使用fieldError
我包括<%@ taglib prefix="s" uri="/struts-tags" %>
我能够在jsp中编写<s:fieldError>
,但是当我尝试渲染它时,我会收到异常。
File /jsp/struts/fielderror.js not found - Class: org.apache.jasper.servlet.JspServlet
File: JspServlet.java
<sec:field key="Address.Firstname">
<label for="NewAccountFirstName">${keyValue}: *</label>
<sec:highlightedText condition="${fn:contains(normalizedInvoiceAddressFields, 'firstName')}" tagName="span" includeTagIfConditionFalse="false">
<input id="NewAccountFirstName" name="cf.completeCustomer.invoiceAddress.firstName" type="text" maxlength="40" required="required" value="<c:out value='${cf.completeCustomer.invoiceAddress.firstName}'/>"/>
</sec:highlightedText>
<s:fielderror fieldName="cf.completeCustomer.invoiceAddress.firstName" />
</sec:field>