Skip to content

[InternalResourceView] Allow exposeContextBeansAsAttributes to be applied to specific beans [SPR-4567] #9244

@spring-projects-issues

Description

@spring-projects-issues

Kenny MacLeod opened SPR-4567 and commented

The exposeContextBeansAsAttributes property of InternalResourceView, while useful, is often a bit too wide-ranging in its effects. Sometimes you get a clash between bean names and JSP scoped variables which can be very hard to track down.

Could InternalResourceView be modified so that a specific collection of beans could be explicitly exposed as JSP attributes, rather than every one of them? These would be injected into the InternalResourceViewResolver by name or reference.


Affects: 2.5.2

Issue Links:

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions