pop an empty nested:root tag around all the nested tags in the included
page. Nested tags always need their root tag. In this instance, the
empty root tag will pick up where the other page left off.


First page, eg...

<nested:form name="myFormBean"
  <nested:iterate property="myList">
    <jsp:include page="myListItemPage.jsp">
  </nested:iterate>
</nested:form>


Included Page, eg...

<nested:root>
  [... other nested stuff...]
</nested:root>


The tree tutorial on my site uses dynamic included and the nested tags
to do its thing. This is how true JSP recursion happens.

Should do the trick.


Arron.


On Wed, 2002-08-28 at 19:29, Jon.Ridgway wrote:
> Hi All,
> 
> I havea problem with the nested tags. If I use a jsp:include on a page and
> the included jsp tires to use the nested tags I get a NullPointerException
> thrown by one of the Nested classes. I guess that something is being stored
> in the page context by the nested tags and that the included page gets a
> different page context (???). The normal bean/html tags seem to be fine.
> 
> Is there a work round, as I really need to use the nested tags and an
> included page. I have a nested:nest just before the jsp:include that sets
> the nested level to an address on my form - the form has delivery, sender
> and receiver addresses - each uses the same address value object. If the
> nested tags worked on the included jsp (my address jsp) I could reuse it for
> each address.
> 
> Any idears....
> 
> Jon.
> 
> The contents of this email are intended only for the named addressees and
> may contain confidential and/or privileged material. If received in error
> please contact UPCO on +44 (0) 113 201 0600 and then delete the entire
> e-mail from your system. Unauthorised review, distribution, disclosure or
> other use of this information could constitute a breach of confidence. Your
> co-operation in this matter is greatly appreciated. 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




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

Reply via email to