jQuery in Action, 3rd edition
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

Struts 1.1: optionsCollection empty?

Sybyll Jones

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

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:
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...

I agree. Here's the link: http://aspose.com/file-tools
subject: Struts 1.1: optionsCollection empty?
It's not a secret anymore!