You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Joe Porcheddu <jp...@cisco.com> on 2004/01/02 19:13:33 UTC

Nested tags not working with session-scope form

Hello,
 
I have a session scope ActionForm. I have a need to use the "nested" tag
library to iterator over some nested beans in the form. However, any use
of a <nested:text>, <nested:write>, <nested:iterate>, etc., will not
output the properties of the ActionForm. This results in a blank HTML
form in my browser.
 
If I changed the "nested" prefix to the original html, logic, etc. Then
everything outputs fine in the HTML.  
 
I am wondering if anyone has come across this problem before, and knows
what I might be doing wrong or something I can check.  To check my
sanity, i wrote a simple web app using session-scoped action forms and
nested tags, and it worked fine. I just can't figure out why it works in
one web-app and not the other.
 
Thanks,
Joe

Re: Nested tags not working with session-scope form

Posted by Arron Bates <st...@keyboardmonkey.com>.
If you can simply switch "nested" for "html" or "logic", then the markup isn't
specifically made for the nested tags. ie: you've probably used the "name"
attribute etc which the nested tags don't need.

If you're able to use "html" or "logic", then you may as well use the original
tags. If you want to take advantage of the nested tags, you'll have to look at
their specific needs in the documentation, or the tutorials at
http://keyboardmonkey.com/next


All the best.

Arron.




> Hello,
>  
> I have a session scope ActionForm. I have a need to use the "nested" 
> tag library to iterator over some nested beans in the form. However, 
> any use of a <nested:text>, <nested:write>, <nested:iterate>, etc.,
>  will not output the properties of the ActionForm. This results in a 
> blank HTML form in my browser.
>  
> If I changed the "nested" prefix to the original html, logic, etc. Then
> everything outputs fine in the HTML.  
>  
> I am wondering if anyone has come across this problem before, and knows
> what I might be doing wrong or something I can check.  To check my
> sanity, i wrote a simple web app using session-scoped action forms 
> and nested tags, and it worked fine. I just can't figure out why it 
> works in one web-app and not the other.
>  
> Thanks,
> Joe




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org