Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[servlet-dev] Question - Servlet Mapping for a path with an ending slash
  • From: Phu Dinh <pmd1nh-bus@xxxxxxxxxxx>
  • Date: Thu, 18 Sep 2025 18:05:04 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=AL7M8l0pNRxP7uITWumlPmr1t+AFcgHOoXNY7sZITAM=; b=GXNfprc9whQ0g0lRr6inN55DwIBKTd7g86T26yZ4m6GRm610bFEyNwW7Pfd3e6q4+phoNG69hGZ2mRD27pLAf/8PtIYyUyutTqh5AxpFNsjF6JvME53tLrIwKUpFiGQcxB48/HFJXIWcZJqz34nN9eLYwqa4RdNeSg3xlDW1jLToM/8BvFSMjo0wL3ciYVoWgunMlt3m1/VI/Y4x7TLtAs5nt06m2Y2/1OmzzeN73j15toMKaGe9Kn7hjT+qT+oQjKKmQM5HXBC1WFY1bZs4clw5jSi3v2GIh1BXId+OLC6Hw56HpT9OHZjl3etYocYiLa0lw+dcGfj/LIOPbMdEbg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=LbD8OmAR1yfR2+ECPaMIoReFjedRsw9tw0HO/zVk7wneJ3uGc0uW4c7gulTWW1U0Vt9i7oQO7TY0j4+y/m6Ki4d6+RMGzIHiDYurzmQYMi/YnpGONZTfhkTeWzlW05/k19i5ir6kKtT6o0MmNw/k2GHQtLAaUOu5G+63o713HO3ujb2zkJr3nzpX+TabYHsZnJdZaRJbz1rWOp6omydWoe7WJ6MjqgqbCkoR9AxjJXmiIG2zLp4i/rEFw0N76GaD90MWvJHx6jnorBySgdSFz+mjLW2+xahB8W/yDSLHewt0jSuHi+hmrepigCYCLsOD+rU5TnNOMEghs+8xvZsgEA==
  • Delivered-to: servlet-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/servlet-dev/>
  • List-help: <mailto:servlet-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/servlet-dev>, <mailto:servlet-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/servlet-dev>, <mailto:servlet-dev-request@eclipse.org?subject=unsubscribe>
  • Msip_labels:
  • Thread-index: AQHcKMUiqfVpCsbhl0yk6nVyPQSwJg==
  • Thread-topic: Question - Servlet Mapping for a path with an ending slash

Hi,

What is the expecting behavior for a request with an ending slash in the path?

Expanding examples from :


With a defined mapping:

    Path Pattern: /catalog/      ->     Servlet5

Incoming request: http://host:port/contextRoot/catalog/

Should Servlet5 handle this request or return a 404?

Regards,

PD


Back to the top