wood burning stoves 2.0*
The moose likes Spring and the fly likes MultiActionController show form data in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "MultiActionController show form data in JSP" Watch "MultiActionController show form data in JSP" New topic
Author

MultiActionController show form data in JSP

Anoop Nair
Ranch Hand

Joined: Oct 29, 2008
Posts: 70
Hi All.

I am using a spring MultiActionController. I have a command object which has a map in it. I want to populate a drop-down using this.

Below is what i am doing:

Controller


UserForm


JSP


In the JSP, the select box is coming empty. I have verified that the map does contain values.

Do I need to do anything more ??
Anoop Nair
Ranch Hand

Joined: Oct 29, 2008
Posts: 70
Got it resolved.

The select tag should be

<form:select path="userId" items="${userForm.users}" />

instead of

<form:select path="userId" items="${users}" />

 
jQuery in Action, 2nd edition
 
subject: MultiActionController show form data in JSP