Example usage for org.springframework.web.servlet.view RedirectView addStaticAttribute

List of usage examples for org.springframework.web.servlet.view RedirectView addStaticAttribute

Introduction

In this page you can find the example usage for org.springframework.web.servlet.view RedirectView addStaticAttribute.

Prototype

public void addStaticAttribute(String name, Object value) 

Source Link

Document

Add static data to this view, exposed in each view.

Usage

From source file:com.example.WebController.java

private RedirectView buildStatusView(String statusMessage) {
    RedirectView view = new RedirectView("/");
    view.addStaticAttribute("statusMessage", statusMessage);
    return view;//from   ww w .  ja v  a2 s  .  c  o  m
}