Making the table to wait for the input, html.

TheDaemon

New Member
I have grails project where I have a big list like this:[\[code\][[TestAddCardForMerchant: TestAddCardForMerchant ], [TestAddCardForMerchantPass/Fail: PASS ], [TestAddCardForMerchantWithWrongApiKey: TestAddCardForMerchantWithWrongApiKey ], [TestAddCardForMerchantWithWrongApiKeyPass/Fail: PASS ], [TestDeleteCardToken: TestDeleteCardToken ], [TestDeleteCardTokenPass/Fail: PASS ], [TestHandlePayWithPresentOrderId: TestHandlePayWithPresentOrderId ], [TestHandlePayWithPresentOrderIdPass/Fail: PASS ], [name: 8 ]]]\[/code\]I wish to render them like this , in view page ( html page ):\[code\]TestAddCardForMerchant : PASSTestAddCardForMerchantWithWrongApiKey : PASS. . . . . . . .\[/code\]I'm struggling to do this! I tried with \[code\]table\[/code\] tag:\[code\]<g:each . . . . > <table border="1"> <tr> <td>${map.value}</td><td>${map.value}</td> </tr> </table></g:each>\[/code\]I want the second \[code\]<td>\[/code\] to execute only for status that is \[code\]PASS/FAIL\[/code\]This only returning : \[code\]TestAddCardForMerchant : TestAddCardForMerchantPASS : PASS. . . . . . . .\[/code\]Can anyone say me where I'm making the mistake?Thanks in advance.
 
Back
Top