tag:blogger.com,1999:blog-8712770457197348465.post8996846303864282416..comments2024-03-17T23:01:26.872-07:00Comments on Javarevisited: JSTL foreach tag example in JSP - looping ArrayListjavin paulhttp://www.blogger.com/profile/15028902221295732276noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-8712770457197348465.post-56653145413449472762020-12-11T07:54:14.643-08:002020-12-11T07:54:14.643-08:00I have one issue while alignment the labels. To...I have one issue while alignment the labels. Total I have 7labels if I enable 5 fields one should comes center and other 4 will be in next line. And in mobile view 2should bi on top another 3in next line. <br />Like this can you please help me on this issue I am using Jsp Syed parveenhttps://www.blogger.com/profile/12282073897498525167noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-55873286011517275272020-06-26T01:53:51.931-07:002020-06-26T01:53:51.931-07:00I want to print a table content in jsp..multiple t...I want to print a table content in jsp..multiple tables are mapped.in that i need to print multiple data in a single column.for example i alloted 3 vehicles,and i need to display no of vehicles 3 in one column and registration numbers of that vehicles in another single column using comma seperation<br />man manhttps://www.blogger.com/profile/08365426012177012740noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-75107095233422162572015-09-28T19:32:18.906-07:002015-09-28T19:32:18.906-07:00JSTL forEach() tag is great for generating HTML ta...JSTL forEach() tag is great for generating HTML tables, all you need is two forEach(), one to print rows and other to print columns and you have a nice, dynamic HTML table ready without using any third paty tag library like display tag. Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-62906699155912855562014-02-06T06:37:15.626-08:002014-02-06T06:37:15.626-08:00If the servlet puts an object named "lesfruit...If the servlet puts an object named "lesfruits" wich is an ArrayList in the request, here is a way to display the ArrayList items in a jsp:<br /> <br /> <br /> ${i} <br /> <br /> <br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-31142916537182510852013-09-16T00:00:59.749-07:002013-09-16T00:00:59.749-07:00i also have a one problem, i m using two tables on...i also have a one problem, i m using two tables one is question and second one is option so i want to get the option according to questionid whn i m giving as manaully questionid then i m getting that same options wid diff question so i want to provide there somthng like question id should get as i and i shuld get incremented every time so any body can help me...Unknownhttps://www.blogger.com/profile/09879751136685762374noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-63317107468945008132013-08-11T19:50:24.421-07:002013-08-11T19:50:24.421-07:00Hi Javin, I have to create an HTML table by loopin...Hi Javin, I have to create an HTML table by looping over HashMap in JSP, i.e. displaying key and value in two different column. I need to do this without scripting i.e. I can not use scriptlet? I am not sure, how I can use tag to iterate over Map, as It's not a Collection like List. Can you please post an example to loop over Map in JSP? Sunidhinoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-55743480834985647232013-08-11T19:39:16.284-07:002013-08-11T19:39:16.284-07:00Great Example of JSTL foreach tag Javin, Just to a...Great Example of JSTL foreach tag Javin, Just to add my 2 cents and improve reference of c:foreach tag attributes, it accepts 6 attributes e.g. items, begin, end, step, var, and varStatus.<br /><br />items - Collection to iterate<br />var - variable which hold current item in loop<br />begin - begin index, starts with 0,<br />end - end index, defaults to last element<br />step - loop increment Anonymousnoreply@blogger.com