Skip to content

Add dynamic view support to http inbound-gateway [INT-2488] #6469

@spring-operator

Description

@spring-operator

imro opened INT-2488 and commented

Can you please provide the HTTP Inbound Gateway with support for an attribute "view-name-expression" that would allow to retrieve the view name dynamically using SpEL Expressions? The rationale behind it to allow the internal SI logic to decide what view should be used, examples:

  • error flow: when an error is met I'd like to use different view to be displayed
  • http inbound gateway + router configuration: it would make sense to have different views for different execution paths; it's illogical to use many http inbound gateways for that; I know different view resolutions strategy could be used but it's not always that easy (especially when having a mixture of jsp & content type view resolvers)

Reference URL: http://forum.springsource.org/showthread.php?123683-SI-exception-handling-http-inbound-gateway-view-name

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions