<form:errors path="FUN020Form.mailAddress" cssStyle="color: red"/>
时间: 2023-12-05 16:13:32 浏览: 29
这是一个在Java Spring框架中使用的表单验证标签,用于在页面中显示表单验证错误信息。其中"path"属性指定了需要显示错误信息的表单域,"cssStyle"属性指定了错误信息的样式。在这个例子中,它会在页面中以红色字体显示名为"FUN020Form.mailAddress"的表单域的错误信息。
相关问题
sabre wp接口返回一下错误<?xml version="1.0" encoding="UTF-8"?> -<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"> -<soap-env:Header> -<eb:MessageHeader soap-env:mustUnderstand="1" eb:version="1.0" xmlns:eb="http://www.ebxml.org/namespaces/messageHeader"> -<eb:From> <eb:PartyId eb:type="URI">webservices.sabre.com</eb:PartyId> </eb:From> -<eb:To> <eb:PartyId eb:type="URI">WebConnectTraining@abacus.com.sg</eb:PartyId> </eb:To> <eb:CPAId>0R6G</eb:CPAId> <eb:ConversationId>webconnect@2023-05-28T00:02:44.1137</eb:ConversationId> <eb:Service eb:type="sabreXML">PO_PNRPricingRQ</eb:Service> <eb:Action>PO_PNRPricingRQ</eb:Action> -<eb:MessageData> <eb:MessageId>1775063235469771950</eb:MessageId> <eb:Timestamp>2023-06-02T06:32:27</eb:Timestamp> </eb:MessageData> </eb:MessageHeader> -<wsse:Security xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/12/secext"> <wsse:BinarySecurityToken EncodingType="wsse:Base64Binary" valueType="String">Shared/IDL:IceSess\/SessMgr:1\.0.IDL/Common/!ICESMS\/RESB!ICESMSLB\/RES.LB!1685203364457!7287!297</wsse:BinarySecurityToken> </wsse:Security> </soap-env:Header> -<soap-env:Body> -<PNRPricingRS Version="1.4.4" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://webservices.sabre.com/sabreXML/2003/07"> -<Errors> <Error ErrorMessage="NO VALID TICKETING AGREEMENTS FOUND" ErrorCode="0"/> </Errors> </PNRPricingRS> </soap-env:Body> </soap-env:Envelope>
根据您提供的信息,这是一个SOAP错误响应,其中包含错误代码和错误消息。错误消息是“NO VALID TICKETING AGREEMENTS FOUND”,错误代码为“0”。这意味着没有找到有效的票务协议。您需要检查您的请求中是否存在正确的票务协议,并确保使用的票务协议与您所请求的操作兼容。如果问题仍然存在,请联系SABRE支持团队以获得更多帮助。
function generateReport() { try { var getUrl = window.location; var baseUrl = getUrl.protocol + "//" + getUrl.host + "/"; var url = baseUrl + 'polarion/ImpactAnalysisTree/ImpactAnalysisTree?projectId=' + projectId; var parameters = ""; var Id = false; var title = false; var workItemId = document.forms["tracegraph"]["itemId"]; if (workItemId != null) { if (!workItemId.value.trim().length == 0) { parameters = '&op=search&workItemId=' + workItemId.value; Id = true; } } if (!Id) { $(".widget-errors").text("Enter a valid Work Item ID /Title to generate traceability report.").show(); return false; } // AJAX 异步请求 $.ajax({ url: url + parameters, method: 'POST', success: function(response) { Data = JSON.parse(response); }, error: function(error) { console.log(error); alert(error); } }); } catch (e) { console.log(e); alert(e); } return false; } 根据返回的值重新渲染下面代码 <FORM id="tracegraph"> <br /> <form name="tracegraph"> <div id="inputDiv"> <table> <tr> <td valign="center" align="right">Work Item ID </td> <td> <div class="autocomplete"> <input id="itemId" type="text" name="itemId" autocomplete="off" placeholder="Work Item ID" style="width: 225px;"> </div> </td> </tr> </table> </div> </form> <table> <tr> <td> <button onclick="generateReport()" class="reportbutton" style="margin-left: 18px;" VALIGN=MIDDLE ALIGN=CENTER> Display Report</button> </td> </tr> </table> <br> <div class="widget-errors"></div> <div id="mainSVG"></div>
根据返回的值重新渲染下面代码:
```html
<FORM id="tracegraph">
<br />
<form name="tracegraph">
<div id="inputDiv">
<table>
<tr>
<td valign="center" align="right">Work Item ID </td>
<td>
<div class="autocomplete">
<input id="itemId" type="text" name="itemId" autocomplete="off" placeholder="Work Item ID" style="width: 225px;">
</div>
</td>
</tr>
</table>
</div>
</form>
<table>
<tr>
<td>
<button onclick="generateReport()" class="reportbutton" style="margin-left: 18px;" VALIGN=MIDDLE ALIGN=CENTER>Display Report</button>
</td>
</tr>
</table>
<br>
<div class="widget-errors"></div>
<div id="mainSVG"></div>
</FORM>
```