DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

How To Get A Parameter From The RequestContext In Spring

04.10.2008
| 10730 views |
  • submit to reddit
        // How to get a parameter from the org.springframework.webflow.execution.RequestContext in Spring framework

// Java:
String myParameter = context.getExternalContext().getRequestParameterMap().get("myParameterPath");

// JSP:
<form:select path="myParameterPath" id="myParameterId">
    ...
</form:select>

// HTML rendered as:
<select name="myParameterPath" id="myParameterId">
...
</select>