• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

nested logic iterate does not set actionform on submit

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have a jsp which has three levels of nested logic:iterate tags. The values all set properly...however when I submit the form the action form is not populated.
The action form has a collection of formA's.
The formA's have a collection of formB's.
The formB's have a collection of formC's.
The parameters are being submitted...
the request parameters are available on the Action class...
formA[0].formB[0].formC[0].attribute1 etc
There are appropriate getter and setters methods which ensures that the indexed object exists prior to setting the form values.
am i missing something.......
any hints would be appreciated.
thanx,
george.
 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
Do you remember to add the following line (also other needed tag libraries)?
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
If you still have problem, I think you should give more here to let us know more about the problem! For example, telling us do you get any error message? giving us the jsp code, etc..
[ February 13, 2004: Message edited by: Jacky Chow ]
 
george justin
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yes it has the logic library included..
The page is loading fine and displaying the values.
Its only when I have to save that the problem arises....
please I am running out of time............
 
george justin
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
got the solution...mistake in my setter/getter methods
thanx anyways.
justin.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic