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

  • 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">

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