• Post Reply Bookmark Topic Watch Topic
  • New Topic

Iterating over JDOM Tree with nested tags  RSS feed

 
Vladimir Miguro
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi boys & girls... :-)
The problem is:
I have JDOM Document in ActionForm bean. In my jsp page I iterate over it. When I need only to display information - no problem:

Structure of tree:
-products
--category*
---subcategory*
----product*
-----model
-----producer




And I need a page, where I can edit all the fields. I decided to use nested tags. cindex and sindex - request parameters for current category and subcategory:


All right - this works fine until I pressed submit... Because JDOM element does not have method setChilren(). I didn't understand - because when html was rendered it is correct. One solution is to use <c:forEach/>. But it isn't nice... :-)
Any thoughts ? :-)
 
Vladimir Miguro
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've found solution myself... When I pressing submit, I'm going to the same page... so cindex и sindex params become uninitialized...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!