0

我想fieldError在我的jsp中使用。
我包括<%@ taglib prefix="s" uri="/struts-tags" %>
我能够用<s:fieldError>jsp编写,但是当尝试渲染它时,我收到异常。

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>
4

0 回答 0