|
Hello,
I have some problems with the options tag, which I
want to use in conjunction with my ActionForm.
In the example application the collection is
filled directly in the subscription.jsp
<%-- In real life, these would be loaded from a
database --%>
<% java.util.ArrayList list = new java.util.ArrayList(); list.add(new org.apache.struts.example.LabelValueBean("IMAP Protocol", "imap")); list.add(new org.apache.struts.example.LabelValueBean("POP3 Protocol", "pop3")); pageContext.setAttribute("serverTypes", list); %> According to the Documentation the options-Tag can
be used in a different way:
- The
ActionForm bean can contain the
collection, - Only
property is specified
- The value of this attribute is the name of a property of the ActionForm bean
associated with our form, which will return the collection.But I alwas get expceptions like
'javax.servlet.ServletException: Cannot create iterator for
PersForm@dafb2f4a'
Can anyone give me an example or some hints how the options-Tag must be
used in conjunction with the ActionForm?
Best Regards
Johann Dorn
|
- Re: options-Tag Johann Dorn
- Re: options-Tag Ted Husted
- Re: options-Tag William Jaynes
- Re: options-Tag Ted Husted

