web.xml

What's the purpose of async-supported in web.xml?

会有一股神秘感。 提交于 2020-01-11 18:21:14
问题 <servlet> <description>xxx</description> <servlet-name>xxx</servlet-name> <servlet-class>com.xxx.yyy</servlet-class> <async-supported>true</async-supported> </servlet> What's the purpose of async-supported in the servlet's web.xml configuration file? What case I can use it in? 回答1: Ironically, I was looking for the syntax of how to write this property in tomcat's web.xml and this is the first search item I opened from google - it's written correctly too (it works), so thanks. To answer your

Using CLIENT-CERT for Tomcat without specifying a username

≡放荡痞女 提交于 2020-01-10 18:31:53
问题 I am trying to make a Tomcat web application use client certificate authentication for incoming connections. Everything works fine when using clientAuth=true in server.xml, however due to other applications running on the same server, we cannot use this in the production environment. Is there a way to form a web.xml document such that it forces client certificate usage for the application in the same way as clientAuth=true? It seems like using the CLIENT-CERT setting also requires you to

Using CLIENT-CERT for Tomcat without specifying a username

我的未来我决定 提交于 2020-01-10 18:27:46
问题 I am trying to make a Tomcat web application use client certificate authentication for incoming connections. Everything works fine when using clientAuth=true in server.xml, however due to other applications running on the same server, we cannot use this in the production environment. Is there a way to form a web.xml document such that it forces client certificate usage for the application in the same way as clientAuth=true? It seems like using the CLIENT-CERT setting also requires you to

Using CLIENT-CERT for Tomcat without specifying a username

蓝咒 提交于 2020-01-10 18:27:29
问题 I am trying to make a Tomcat web application use client certificate authentication for incoming connections. Everything works fine when using clientAuth=true in server.xml, however due to other applications running on the same server, we cannot use this in the production environment. Is there a way to form a web.xml document such that it forces client certificate usage for the application in the same way as clientAuth=true? It seems like using the CLIENT-CERT setting also requires you to

Welcome pages in java ee 6

跟風遠走 提交于 2020-01-07 04:08:04
问题 As a follow up to this question, can one specify the welcome pages without web.xml? If possible, how? If not possible, are welcome pages simply not used? If not used, what are the advantages and disadvantages? 回答1: You can specify the welcome page without declare in web.xml. You use some html file and forward to your desire start page.see sample, index.jsp <html> <body> <jsp:forward page="/pages/welcome.jsf" /> </body> </html> The index.jsp page forward to welcome.jsf page without declare to

How to add myFaces Tomahawk to my JSF 2.0 (.jsp) running in glassfish 3?

ぐ巨炮叔叔 提交于 2020-01-06 15:05:01
问题 Hi I been having some problems with my web.xml file I've been getting: Exception while loading the app org.glassfish.deployment.common.DeploymentException: LLog; at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:169) at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:125) at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:224) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:338) at com.sun.enterprise.v3.server

should I make two different servlet entry for rest and normal html in web.xml

倖福魔咒の 提交于 2020-01-06 14:12:55
问题 I am writing spring mvc application. In my application I have web pages as well as rest web services to handle ajax call. I have done below entry in web.xml <servlet> <servlet-name>myapp</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <init-param> <param-name>contextConfigLocation</param-name> <param-value>/WEB-INF/spring_myapp-servlet.xml</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name

How to use doGet in jsp with Servlet

此生再无相见时 提交于 2020-01-06 14:00:53
问题 I'm trying to send some thing to a servlet but i get this Etat HTTP 404 - /pdfreader/Services%20Web%20avec%20J2EE%20et%20.NET.pdf -------------------------------------------------------------------------------- type Rapport d''état message /pdfreader/Services%20Web%20avec%20J2EE%20et%20.NET.pdf description La ressource demandée (/pdfreader/Services%20Web%20avec%20J2EE%20et%20.NET.pdf) n'est pas disponible. I invoke it from my JSP like this <a href="/pdfreader/<%=filename/*le nom d'un fichier

Tomcat security-constraints TRACE inconsistent

落爺英雄遲暮 提交于 2020-01-06 05:07:30
问题 I'm using a web.xml to try and disable the HTTP methods we're not using and to return a body that doesn't contain any tomcat info. So I've changed the web.xml of the app to have: <security-constraint> <web-resource-collection> <web-resource-name>restricted methods</web-resource-name> <url-pattern>/*</url-pattern> <http-method>TRACE</http-method> <http-method>PUT</http-method> <http-method>OPTIONS</http-method> <http-method>DELETE</http-method> <http-method>HEAD</http-method> </web-resource

Tomcat security-constraints TRACE inconsistent

早过忘川 提交于 2020-01-06 05:07:25
问题 I'm using a web.xml to try and disable the HTTP methods we're not using and to return a body that doesn't contain any tomcat info. So I've changed the web.xml of the app to have: <security-constraint> <web-resource-collection> <web-resource-name>restricted methods</web-resource-name> <url-pattern>/*</url-pattern> <http-method>TRACE</http-method> <http-method>PUT</http-method> <http-method>OPTIONS</http-method> <http-method>DELETE</http-method> <http-method>HEAD</http-method> </web-resource