You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Chen, Dean (Zhun)" <De...@gs.com> on 2002/06/04 00:07:31 UTC
nested tag issue
Hi,
I am trying to use the nested tag. It's giving me a null pointer exception
if I try access a method of the nested tags by itself. However, if I enclose
it in a <html:form...> then it'll work. Any ideas?
Thanks,
This works, where filter.do maps to the form that holds myCollection:
<html:form action="/filter.do">
<nested:nest property="myCollection">
<nested:iterate property="myCollection">
<nested:write property="myDate"/>
</nested:iterate>
</nested:nest>
</html:form>
This doesn't:
<nested:nest property="myCollection">
<nested:iterate property="myCollection">
<nested:write property="myDate"/>
</nested:iterate>
</nested:nest>
Thanks in advance.
Dean Chen
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>