Meaningless Drivel is fun!*
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}" />

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: MultiActionController show form data in JSP
 
Similar Threads
how to tell MultiActionController Command Object is Of type com.dss.ems.model.User
Error on View - MultiActionController + Spring:bine
JSF, strange form action generated
Property binding error
[Struts2] losing display only(prepopulated) values of the form if the validaiton fails