Skip to content
IT Nursery
  • Home
  • Programming
    • Mac / IOS
    • Android
    • Web Applications
    • PHP
    • Java
    • C
    • C++
  • DataBase
    • MySQL
  • CMS
    • WordPress
  • System and Network
    • Serverfault

servlets

Tomcat: possible to exclude jars during app deployment?

by IT Nursery

By default, Tomcat prevents webapps from loading several .jars which are part of the Tomcat distribution (eg the servlet and JSP APIs) – … Read more

Tags java, servlets, tomcat

Get the POST request body from HttpServletRequest

by IT Nursery

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

Tags java, post, servlets

How to define servlet filter order of execution using annotations in WAR

by IT Nursery

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

Tags jakarta-ee, order-of-execution, servlet-filters, servlets, web.xml

What does the servlet value signify

by IT Nursery

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

Tags jakarta-ee, servlets, web.xml

Difference between / and /* in servlet mapping url pattern

by IT Nursery

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

Tags servlets, url-pattern, web.xml

How to use a servlet filter in Java to change an incoming servlet request url?

by IT Nursery

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

Tags java, request, servlet-filters, servlets, url

What is WEB-INF used for in a Java EE web application?

by IT Nursery

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

Tags java, java-ee-7, servlets, war, web-inf

Java / Jakarta EE web development, where do I start and what skills do I need? [closed]

by IT Nursery

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

Tags jakarta-ee, jsp, model-view-controller, servlets

Where to place and how to read configuration resource files in servlet based application?

by IT Nursery

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

Tags configuration, jakarta-ee, properties-file, resources, servlets

Maven dependency for Servlet 3.0 API?

by IT Nursery

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

Tags jakarta-ee, java, maven-2, servlets
Older posts
Page1 Page2 Page3 Next →

Recent Posts

  • Advice for improving internal dashboard [closed]
  • grep : ‘+’ special character
  • File location for Syslogs in Centos machine
  • How to collect users’ task completion times?
  • “service {FOO} start” vs. “/etc/init.d/{FOO} start”? [closed]
IT Nursery
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Important Link

  • About
  • Privacy Policy
  • Contact

IT Nursery

The Goal of ITNursery Engaging the world to foster innovation through aggregate information. Our Question Answer post, blog information, products and tools help developers and technologists in life and at work.

copyright © 2023 All Right Reserved | IT NurSery
x
x