web.xml

    3熱度

    1回答

    我正在開發一個tomcat應用程序。我正在嘗試添加由catlina庫(org.apache.catalina.filters.CsrfPrevention)提供的CSRF身份驗證令牌。我已經加入過濾到web.xml <filter> <filter-name>CsrfFilter</filter-name> <filter-class>org.apache.catalina.f

    1熱度

    1回答

    我有一個web.xml文件,它在上下文參數和init-param過濾器中設置變量。我想用應用程序啓動時從屬性文件中取得的值來替換這個變量。 我的web.xml是這樣的: <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3

    0熱度

    1回答

    我已經花了幾個小時就解決以下問題: 我有一個Maven項目具有以下的web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi

    1熱度

    1回答

    我有一個非常簡單的web.xml的webapp。 <?xml version="1.0"?> <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="

    0熱度

    1回答

    我嘗試在我的網站中始終使用https。我有我的web.xml文件中的以下內容: <security-constraint> <display-name>All access - GET and POST over SSL</display-name> <web-resource-collection> <web-resource-name>Common area -

    1熱度

    1回答

    如果我不包括web.xml文件,則索引文件正常打開但結果頁HelloWorld.jsp正在給出404錯誤,並且包括web.xml索引頁在給出404錯誤時。 我有index.jsp文件。 localhost:8080工作正常,但在此之後發生錯誤。 在這裏看到:

    -1熱度

    1回答

    我是java的新手,JAX-RS.i已經開發了簡單應用程序的工作示例。 現在我想在RESTFul中減少我的網址。 目前我有http://localhost:8084/eshipper_api/apis/api/get_quote此網址。 其工作並給出輸出。 我想,以減少它,並希望使它像http://localhost:8084/eshipper_api/apis/get_quote 我的web.x

    1熱度

    2回答

    我想在打開BeforeLogin頁面時使用JavaScript函數將我的jsp重定向到另一個jsp頁面。但是我收到了錯誤信息。 無法找到Struts調度程序。這通常是由於使用沒有關聯過濾器的Struts標籤造成的。 Struts標籤只有在請求通過其servlet過濾器時纔可用,該過濾器初始化此標籤所需的Struts調度器。 我不確定該怎麼做。 BeforeLogin.jsp: function n

    0熱度

    1回答

    我有一個@Provider帶註釋的異常映射程序,但澤西島不加載或註冊它。 在我web.xml(下調): <servlet> <servlet-name>Jersey</servlet-name> <servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class> <init-para

    0熱度

    1回答

    我嘗試使用開班。並嘗試從eclipse與openshift插件幫助openshift tomcat 7部署動態Web項目。而當我嘗試部署我有建設錯誤,我不好在maven,但像我明白這是因爲maven沒有看到我的web.xml,但我有我的web.xml中。項目沒有一些奇特的api。這是我的WebContent/WEB-INF/web.xml文件: <?xml version="1.0" encodi