[英]Why doesn`t url change when running servlet that presents in welcome-file-list
我有簡單的 servlet 打印一些響應 web.xml 看起來像: 問題是 url 在重定向到歡迎文件列表中的 servlet 時沒有改變我的 url: http://localhost:8080/testsss_war_exploded/ 但應該是:http://localhost:8080/ ...
[英]Why doesn`t url change when running servlet that presents in welcome-file-list
我有簡單的 servlet 打印一些響應 web.xml 看起來像: 問題是 url 在重定向到歡迎文件列表中的 servlet 時沒有改變我的 url: http://localhost:8080/testsss_war_exploded/ 但應該是:http://localhost:8080/ ...
[英]Embedded Tomcat 7.0.99 is forcing default welcome files into context
我正在將 Spring/Angular 應用程序從 Tomcat 7.0.59 升級到 7.0.99。 我正在使用嵌入式 Tomcat 服務器並從命令行(“tomcat7:run-war”)運行該應用程序。 問題是默認的歡迎文件被添加到上下文中(來自 Tomcat.initWebappDefaul ...
[英]index.html not found payara micro
我有一個Java應用程序,我正在使用Payara Micro 4.1.2.174來部署它。 我正在嘗試配置index.html文件,該文件放在文件夾src/main/webapp中。 但是,無論我做什么,該文件都無法訪問,當我嘗試在 localhost 上訪問它時得到 404: http://lo ...
[英]JSP Welcome file issue
我在web.xml中給出了歡迎文件,但是在運行我的spring應用程序時,它在http:// localhost:8080 / web_customer_tracker /上顯示404錯誤 我使用IntelliJ IDEA,GlassFish 5.0.0,index.jsp文件直接位於we ...
[英]Set default protected welcome page in Spring MVC project
我有一個Spring MVC項目,我想設置一個受登錄保護的歡迎主頁。 配置的結果是正常情況下,如果我詢問如下網址: HTTP://本地主機:8080 / angularjava /應用/ homepage.html 服務器正確顯示了一個登錄頁面。 如果我改問這個URL: H ...
[英]CSS fails to apply for the home page in <welcome-file-list>
您好,我在/WebContent/html/LoginPage.html中有一個主頁LoginPage.html。 我已經在web.xml中進行了配置 問題:當我嘗試從主頁URL訪問文件時 http:// localhost:8080 / Project / 無 ...
[英]Welcome file not displayed in my Dynamic web project
我正在嘗試創建示例Web項目以了解該概念。 我面臨一些問題。 在Java web server上執行該應用程序后,不會顯示歡迎列表頁面。 當我用google搜索時,發現的基本原因是index.html位置不正確或在web.xml文件中未提及。 就我而言,我認為這是正確的。 請指 ...
[英]Root “/” mades server load index.html before pass through the servlet
我有一個映射到根目錄“ /”的Servlet: 此服務中完成了一些小操作,例如身份驗證和Google Plus信息的檢索。 之后,我將轉發到名為“ index.jsp”的JSP文件。 當我訪問“ localhost:8080 /”時,將加載靜態文件“ index.jsp”,而無 ...
[英]How to define Welcome Page in Java EE without a deployment descriptor
在一個簡單的 Java EE 8 web 應用程序中,並且由於部署描述符不是強制性的,並且由於可以在使用@WebListener注釋的ServletContextListener注冊Servlet和Filter ,我如何以編程方式定義歡迎頁面列表而不依賴於web.xml文件? ...
[英]welcome-file index.xhtml gives Not Found in ExternalContext as a Resource
我有一個jsf項目,已部署到wildfly 10服務器。 部署后,我導航到部署根目錄( http:// localhost:8080 / {deployment-name} /)出現“ /home/default.xhtml在ExternalContext中找不到作為資源”錯誤,但是當我直接導 ...
[英]How do I set home.jsp as my welcome page in java config based spring application
我正在開發一個spring應用程序(基於注釋的配置),其中index.jsp是我的默認歡迎頁面。 但是現在我不想將index.jsp顯示為我的歡迎頁面,而是想要將其更改為home.jsp。 我該如何實現? 我嘗試了以下WebMvcConfigurerAdapter類的方法 它不 ...
[英]welcome file list page not loading by default
我已經在Websphere Liberty上部署了一個應用程序。 當我訪問我的主頁時: localhost:8080/myapp它顯示一個空白頁面。 但是,當我轉到localhost:8080/myapp/jsp/status.jsp它會顯示我需要的頁面。 在我的web.xml我將歡迎文件列表 ...
[英]websphere welcome-file filter not getting picked up
以下是我的web.xml的內容,該應用程序在Websphere 8.5中已部署 我面臨的問題是,當我打到https:// servername:portNumber / contextPath /?QueryParam之類的URL時,我的CheckFilter沒有被調用。在tomcat和 ...
[英]Use of welcome-file-list, why can we specify a list if it would run only one?
在我的JSF應用程序中,歡迎文件設置為index.xhtml 。 我的疑問是,當給出多個歡迎文件時,將運行哪個文件? 如果僅第一個歡迎文件運行,為什么我們有<welcome-file-list>允許多個歡迎文件? ...
[英]Why is my struts annotation redirection not working?
當我輸入根URL( localhost:8081/ )時,我想重定向到fail.jsp 。 這是我的java類Root: 當前,它將我重定向到index.jsp 。 大多數在線教程都提到了web.xml但有些人告訴我它與web.xml無關。 所以我很困惑。 有人可以幫助我了解我所 ...
[英]Why does “../folder/image.jpg” work when the particular jsp is only run using 'right-click-> run on server'
我在Eclipse中設置的文件夾如下: 我已將web.xml配置為以以下方式打開歡迎文件 當我像這樣運行時,鏈接,例如<img src="../images/image.jpg"/>可以正常工作: 即。 單擊單個jsp並在服務器上運行。 但是當我在服 ...
[英]Error with Annotation in servlet 3.x
這是我的路 和我的servlet,我在下面聲明urlpattern 並轉發到文件homeview.jsp 但是當我運行我的Web應用程序時,它的htttp狀態為404 anyboby錯誤,請幫我修復它嗎? ...
[英]How to set the welcome-file when developing spring mvc application with pure Java based configuration and no web.xml?
我正在使用Spring MVC開發基於純Java且沒有web.xml配置的Web應用程序。 我確實對下面的類進行了編碼,以加載bean並設置url模式。 如何設置歡迎文件? ...
[英]Custom motd.tcl does not show at startup
我按照本教程來修改服務器的ssh歡迎消息,但是當我使用ssh時,我根本沒有消息... 以下是一些信息: /etc/motd.tcl是可執行的 /etc/motd.tcl位於/ etc / profile的末尾 /etc/motd.tcl顯示我的歡迎消息,沒有任何錯誤: ...
[英]eclipse webapp welcome file display error
我是新手,在開始新的Web應用程序時遇到困難。 index.jsp不顯示。 web.xml: 我已經嘗試使用http:// localhost:8080 / PizzaOrderApp / index.jsp和http:// localhost:8080 / PizzaOr ...