Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

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.
 
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic