Re: How to specify the FormBean in an iterate tags name property?

2003-06-08 Thread Rodrigo di Lorenzo Lopes
Let you FormBean has the name myform
so ... in jsp, use:
logic:iterate name=myform property=myList id=cols
important :
YOU MUST SPECIFY YOUR FormBean to any tag inst part of html:form

Mike Whittaker writes:
 
 How do I specify the FormBean in the iterate name property?
 
 I have DynaActionForm, with a List property (myList),
 I populate it in my Action with a bunch of beans that have a get  setTag()
 method.
 
 This is in my html:form
 
 logic:iterate id=cols indexId=ctr name=
 html:checkbox name=cols property='%= myList[+ctr+].tag %'
 value=ON /
 /logic:iterate
 
 How do I specify the FormBean in the iterate name property?
 
 Or why else do I get this exception:
 java.lang.NullPointerException
   at java.util.Hashtable.get(Hashtable.java:326)
   at
 org.apache.jasper.runtime.PageContextImpl.findAttribute(PageContextImpl.java
 :302)
   at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:787)
   ...
 TIA
 --
 Mike W
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-- 
Rodrigo di Lorenzo Lopes (Mineirinho) - ICQ 52982003

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to specify the FormBean in an iterate tags name property?

2003-06-07 Thread Mike Whittaker

How do I specify the FormBean in the iterate name property?

I have DynaActionForm, with a List property (myList),
I populate it in my Action with a bunch of beans that have a get  setTag()
method.

This is in my html:form

logic:iterate id=cols indexId=ctr name=
html:checkbox name=cols property='%= myList[+ctr+].tag %'
value=ON /
/logic:iterate

How do I specify the FormBean in the iterate name property?

Or why else do I get this exception:
java.lang.NullPointerException
at java.util.Hashtable.get(Hashtable.java:326)
at
org.apache.jasper.runtime.PageContextImpl.findAttribute(PageContextImpl.java
:302)
at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:787)
...
TIA
--
Mike W


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]