• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

multiple array

 
supriya lal
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

how to print multiple arraylist simultaneously...this code is not giving the right result..
I want the output as PRODUCT PRICE



but I am getting the output as PRODUCT PRODUCT
PRICE PRICE

 
Swastik Dey
Rancher
Posts: 1604
5
Android Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First of all, avoid java code inside jsp, it's a very old practice. Use jstl/custom tags etc. Now coming to your question, the table tag should come before the loop, its creating the table every time, in addition to this you seem to have an extra td tag.
 
James X Peterson
Whizlabs Java Support
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi supriya lal,

there is and extra TD tag remove it. try to place the table tag above the loop as it is creating the table for every iteration. Try to change these changes in your code and see the result.


Regards,
James
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic