From 7509e257d1ab73192dcee8344224e0a7b9bdb83a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Deleuze?= Date: Thu, 30 Oct 2025 16:02:08 +0100 Subject: [PATCH] Remove outdated Portlet mentions Closes gh-35726 --- .../java/org/springframework/jndi/JndiLocatorDelegate.java | 2 +- .../main/java/org/springframework/core/io/ContextResource.java | 2 +- .../org/springframework/web/servlet/view/RedirectView.java | 3 --- .../org/springframework/web/servlet/config/spring-mvc.xsd | 1 - 4 files changed, 2 insertions(+), 6 deletions(-) diff --git a/spring-context/src/main/java/org/springframework/jndi/JndiLocatorDelegate.java b/spring-context/src/main/java/org/springframework/jndi/JndiLocatorDelegate.java index 6009d6bdcf3..033eb4dbc99 100644 --- a/spring-context/src/main/java/org/springframework/jndi/JndiLocatorDelegate.java +++ b/spring-context/src/main/java/org/springframework/jndi/JndiLocatorDelegate.java @@ -43,7 +43,7 @@ public class JndiLocatorDelegate extends JndiLocatorSupport { * JNDI lookups such as for a {@code DataSource} or some other environment resource. * The flag literally just affects code which attempts JNDI searches based on the * {@code JndiLocatorDelegate.isDefaultJndiEnvironmentAvailable()} check: in particular, - * {@code StandardServletEnvironment} and {@code StandardPortletEnvironment}. + * {@code StandardServletEnvironment}. * @since 4.3 * @see #isDefaultJndiEnvironmentAvailable() * @see JndiPropertySource diff --git a/spring-core/src/main/java/org/springframework/core/io/ContextResource.java b/spring-core/src/main/java/org/springframework/core/io/ContextResource.java index 90b2c2dc421..9fd5599e017 100644 --- a/spring-core/src/main/java/org/springframework/core/io/ContextResource.java +++ b/spring-core/src/main/java/org/springframework/core/io/ContextResource.java @@ -32,7 +32,7 @@ public interface ContextResource extends Resource { /** * Return the path within the enclosing 'context'. *

This is typically path relative to a context-specific root directory, - * for example, a ServletContext root or a PortletContext root. + * for example, a ServletContext root. */ String getPathWithinContext(); diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/view/RedirectView.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/view/RedirectView.java index 9a33cee51f7..69d733bae5a 100644 --- a/spring-webmvc/src/main/java/org/springframework/web/servlet/view/RedirectView.java +++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/view/RedirectView.java @@ -70,9 +70,6 @@ import org.springframework.web.util.WebUtils; * actually is, they are much better off setting this flag to true, and submitting * paths which are to be considered relative to the web application root. * - *

NOTE when using this redirect view in a Portlet environment: Make sure - * that your controller respects the Portlet {@code sendRedirect} constraints. - * * @author Rod Johnson * @author Juergen Hoeller * @author Colin Sampaleanu diff --git a/spring-webmvc/src/main/resources/org/springframework/web/servlet/config/spring-mvc.xsd b/spring-webmvc/src/main/resources/org/springframework/web/servlet/config/spring-mvc.xsd index b2fd841e0f9..dcb56f5cc31 100644 --- a/spring-webmvc/src/main/resources/org/springframework/web/servlet/config/spring-mvc.xsd +++ b/spring-webmvc/src/main/resources/org/springframework/web/servlet/config/spring-mvc.xsd @@ -15,7 +15,6 @@