cost 324 ms
HTTP Content-Security-Policy header 對於 Struts 中的 script-src 無法正常工作

[英]HTTP Content-Security-Policy header not working correctly for script-src in Struts

我在將我的 struts struts2-core-2.5.30 項目版本更新到 struts2-core-6.1.1 時遇到問題,所以我開始收到一條錯誤消息,表明違反了安全策略,做了一些研究,我發現一個 header應該加上 在這個錯誤里面我有這個描述 但是我已經嘗試過這些標題 對於它們中的每一個 ...

遷移到 JBoss 后的 OGNL 索引問題 7

[英]OGNL Indexing issue after migration to JBoss 7

我目前正在使用 Struts2/OGNL 將遺留系統從 JBoss 6.1 遷移到 JBoss 7.4,其中 object 使用 OGNL 進行索引時出現問題。 以下 function 導致 JBoss 7.4 中的表達式設置錯誤,這在舊版本中不會發生: 當 OGNL 在 JBoss 7 中調用它 ...

為什么在struts2中不保留session

[英]Why session is not preserved in struts2

我想在 strtus2 中的多個操作中使用值,具體來說,我開發了以下示例。 當我在輸入標簽中輸入sample input時,這個值被傳遞給updateAction.java然后nextAction.jsp將被加載然后ServletHelperAction將被執行。 之后, sample input ...

在 Struts2 中執行另一個操作后,值堆棧的值發生變化

[英]Value of Value stack is changed after execute another action in Struts2

我喜歡關注jsp 。我通過表單發送一些數據並執行Action , case.jsp servlethelper.jsp CasePostAction.java 輸入input value並提交按鈕后,如下所示。 輸出如下,當我通過<s:action>執行另一個操作時,值堆棧似乎發生了變化 ...

2022-12-16 02:20:33   1   40    java / struts2  
Freemarker參考模板中的theme.properties

[英]Freemarker reference theme.properties in template

我對此很陌生,必須將現有的 Web 應用程序(我不太了解)遷移到 Weblogic (12.2.1.4)。 我不得不升級 struts 的版本 (2.0.11.2 --> 2.3.1),它還附帶了更新版本的 Freemarker (2.3.8 --> 2.3.18)。 模板目錄有不同主 ...

需要清除struts的package中的錯誤

[英]Need to clear the error in the package of struts

AddBookAction.java 錯誤: jars 在我的庫中 系統變量中添加的路徑 xwork package 添加到我的 lib 文件夾、系統變量 [類路徑] 中,但在編譯時出現錯誤,指出 package 未添加到我的 class 路徑中。 僅通過記事本文件而不是 eclipse 或任 ...

2022-11-23 06:39:32   2   39    java / struts2  
Struts2 默認攔截器列表

[英]Struts2 list of default interceptors

我找不到 defaultStack 中使用的攔截器列表。 我的應用程序在我使用 defaultStack 時工作,但我不想擁有所有攔截器,只有我需要的攔截器(比如我不希望 CSP 攔截器包含在 defaultStack 中)。 我在哪里可以找到這份清單? ...

2022-09-14 07:05:38   1   9    struts2  
Struts pdf 視圖顯示 null 指針異常響應 object

[英]Struts pdf view showing null pointer exception in response object

我用 iTextpdf 創建了一個 pdf 但是在設置 response.setContentType("application/pdf"); 獲取 null 指針異常來自 jsp struts.xml 動作 class 卡得很厲害。 任何幫助,將不勝感激。 謝謝你。 ...

使用 JSP 中變量的參數調用 Stuts 2 操作方法

[英]Call Stuts 2 Action Method with Parameter from Variable in JSP

有一個類似的線程從未正確回答。 我正在嘗試使用<s:property>從 JSP 調用 Struts 2 Action 方法,並且此方法需要一個參數。 我想傳遞的值在一個變量中。 這不起作用: myvar以 NULL 的形式出現。 此外,將value="%{getActionCateg ...

Struts 2 攔截器在不應該觸發時觸發

[英]Struts 2 interceptor firing when it shouldn't

我的網絡應用程序中有不同的區域,基本上: 登錄操作。 沒有特殊的攔截器需求。 安全區。 僅適用於經過身份驗證的用戶。 AuthenticationInterceptor 將未經過身份驗證的用戶重定向到注銷操作。 管理區。 僅適用於管理員用戶。 AdministrationInterceptor ...

2022-08-25 11:32:07   1   19    struts2  
使用 struts jquery 插件升級到 Struts 6 時出錯

[英]Error while upgrade to Struts 6 with struts jquery plugin

我們已經升級到Struts 6.0.0 。 項目Struts 2 jquery plugin version 4.0.3 。 加載頁面時,我們會遇到此錯誤: 堆棧跟蹤原因是: 文件template/jquery/div.ftl中的第 22 行如下: 我對Freemaker不熟悉,我希望我能找到一個標 ...

Mockito Junit: ExceptionInIntialize and NullPointer Error on struts DispatchAction.java when running the Junit tests on a class that extends it

[英]Mockito Junit : ExceptionInIntialize and NullPointer Error on struts DispatchAction.java when running the Junit tests on a class that extends it

I have a class ClassA which is extending DispatchAction class from org.apache.struts.actions.DispatchAction, I have written JUnit code coverage test ...

如何在 Struts 1 中進行 URL 重定向?

[英]How to do URL redirect in Struts 1?

我們的應用程序(仍然使用 Struts 1)需要將用戶重定向到新的登錄頁面(托管在外部)。 在一個類似的應用程序中(使用 Struts 2),我們可以正常工作。 下面,我將展示我們的實現。 最終,我想在 Struts 1 中找到等效的版本。由於這個舊的不受支持的軟件,我無法找到任何在線文檔。 我將不 ...

將數據從單例類發送到 JSP 頁面

[英]Send data from Singleton Class to JSP page

我正在開發 Struts2 應用程序。 數據庫表中有一個值,我想在許多不同的 Jsp 頁面中使用該值。 為此,我正在使用單例類。 DAO類: 單例類: 公共類TestSingleton { 如何在單例類中使用會話並在 JSP 頁面中讀取會話 ...


 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM