Tomcat: possible to exclude jars during app deployment?
By default, Tomcat prevents webapps from loading several .jars which are part of the Tomcat distribution (eg the servlet and JSP APIs) – … Read more
By default, Tomcat prevents webapps from loading several .jars which are part of the Tomcat distribution (eg the servlet and JSP APIs) – … Read more
I am trying to get the whole body from the HttpServletRequest object. The code I am following looks like this: if ( request.getMethod().equals(“POST”) … Read more
If we define webapp specific servlet filters in WAR’s own web.xml, then the order of execution of the filters will be the same … Read more
I am getting a bit confused here. In our application we are having a few servlets defined. Here is the excerpt from the … Read more
The familiar code: <servlet-mapping> <servlet-name>main</servlet-name> <url-pattern>/*</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>main</servlet-name> <url-pattern>/</url-pattern> </servlet-mapping> My understanding is that /* maps to http://host:port/context/*. How about /? It … Read more
How can I use a servlet filter to change an incoming servlet request url from http://nm-java.appspot.com/Check_License/Dir_My_App/Dir_ABC/My_Obj_123 to http://nm-java.appspot.com/Check_License?Contact_Id=My_Obj_123 ? Update: according to BalusC’s … Read more
I’m working on a Java EE web application with the following source code directory structure: src/main/java <– multiple packages containing Java classes src/test/java … Read more
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, … Read more
In my web application I have to send email to set of predefined users like [email protected], so I wish to add that to … Read more
How can I tell Maven 2 to load the Servlet 3.0 API? I tried: <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>3.0</version> <scope>provided</scope> </dependency> I use http://repository.jboss.com/maven2/ … Read more