[Java Play Framework] Fix a small error of using paramName instead of baseName (#6395)

* Fix a small error of using paramName instead of baseName

* Add sample generation
This commit is contained in:
Jean-François Côté
2017-08-30 05:58:24 -04:00
committed by wing328
parent 9fb8e637fa
commit d80c0f5546
2 changed files with 3 additions and 3 deletions

View File

@@ -78,7 +78,7 @@ public class {{classname}}Controller extends Controller {
}
{{/collectionFormat}}
{{^collectionFormat}}
String value{{paramName}} = request().getQueryString("{{paramName}}");
String value{{paramName}} = request().getQueryString("{{baseName}}");
{{{dataType}}} {{paramName}};
{{^required}}
if (value{{paramName}} != null) {