aspose file tools*
The moose likes JSP and the fly likes Struts 1.1: optionsCollection empty? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Struts 1.1: optionsCollection empty?" Watch "Struts 1.1: optionsCollection empty?" New topic
Author

Struts 1.1: optionsCollection empty?

Sybyll Jones
Greenhorn

Joined: Dec 20, 2007
Posts: 14
Hello, i use Struts 1.1, Eclipse 3.1 and JRE/JDK 1.6. I have this code in my JSP:
<html:select name="initForm" property="idman" >
<optionsCollection name="initForm" property="manList" />
</html:select>

But i get only the empty dropdownlist without any errormessages...
initForm is my ActionForm and idman is defined there as an int, manList as an List with Getter/Setter. to set the list i have this line in my InitAction:
form.setManList(getMan());
and getMan() returns a list. I made a breakpoint there, but when the jsp loads, he doesn't jump to getMan()??

Anyone an idea?
<bean:write name="initForm" property="idman"/> alone works...

Thanks
Sybyll
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Struts 1.1: optionsCollection empty?