[英]in a Java MicroServices System where locate the error check?
我有一個控制器接收請求,將數據傳遞給服務,服務進行外部 http 調用,將答案返回給服務,然后控制器返回一個網頁。 錯誤消息或異常可能來自外部調用。 在返回網頁之前,應該在進行外部調用的服務中還是在控制器中進行錯誤檢查? ...
[英]in a Java MicroServices System where locate the error check?
我有一個控制器接收請求,將數據傳遞給服務,服務進行外部 http 調用,將答案返回給服務,然后控制器返回一個網頁。 錯誤消息或異常可能來自外部調用。 在返回網頁之前,應該在進行外部調用的服務中還是在控制器中進行錯誤檢查? ...
[英]Difference between @ManagedProperty and FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get(“bean”)
之間有什么區別: 和 如果沒有區別,哪種方法更好? 干杯。 ...
[英]How do i redirect result(Which will have some data of request and response) to another jsf page using ExternalContext?
...
[英]Not Found in ExternalContext as a Resource
我在Eclipse Luna上有一個Maven項目。 我的應用程序正常部署在tomcat 7上,但是當我嘗試訪問它時,一些primefaces資源未加載,並且出現以下異常: 我還使用Spring Web Flow和在tomcat的server.xml文件上配置的外部上下文,如下所示 ...
[英]ExternalContext#getResourceAsStream() returns null, where to place the resource file?
我正在嘗試在托管bean中獲取PNG文件作為InputStream ,如下所示: 但是, InputStream始終為null。 這是怎么引起的,我該如何解決? ...
[英]FacesContext…redirect(page) : how to redirect with data ?
有人可以通過以下重定向方法告訴我如何使用數據重定向: 。FacesContext.getCurrentInstance()getExternalContext()重定向( “page1.xhtml”); 我有一些字符串“regNo”我想發送。 另外,請告訴我如何在page1.xht ...
[英]how jsf get server url
所有 我的Web項目在tomcat中運行,其路徑為http://localhost:8080/test/index.html 。 如何通過ExternalContext獲取url =“ http:/ localhost:8080 / test /”? 謝謝先進。 ...
[英]What is the difference between FacesContext and ExternalContext
FacesContext和ExternalContext什么區別? 我什么時候可以使用其中一個? 什么有一個什么有另一個? 以下示例來自JavaServer Faces第3版: 支持豆: 為什么ExternalContext請求參數? 什么是clientId ? 它 ...