This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes Plz can anybody provide soln for this Immed.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Plz can anybody provide soln for this Immed.." Watch "Plz can anybody provide soln for this Immed.." New topic
Author

Plz can anybody provide soln for this Immed..

saravana kumar
Greenhorn

Joined: May 14, 2007
Posts: 12
Hi,
My requirement is i have to populate the nested tag dynamically based on the number of items availabe in the list.If my list size is 3 then i have to generate the nested tag as below mentioned.
<nested:nest property="abc" >
<nested:nest property="xyz">
<nested:nest property="pqr">
// here i will generate some textbox or combo box based on some
// cond like <nested:text property="patientName" />
</nested:nest>
</nested:nest>
</nested:nest>
For property attribute values will be populated dynamically by looping thru the list.

Actually i tried it, but i am facing problem.. not- matching extension tag why bcoz while populating nested tag dynamically, when i populate the second nested tag(like mentioned above) it is expecting the closing nested tag for the first one. but i can't close nested tag immediately. i have to loop thru the list, i have populate the nested open tag n no% of times(n- size of the list)after that i have to close correspondingly for each nested tag.

Regards,
Saravana
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Plz can anybody provide soln for this Immed..
 
Similar Threads
nested indexed property
Nesting question
Struts nested tags
Nested tag problem
Facing problem in jsp- Non-matching extension tags