Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Display fro Java Class  RSS feed

 
sree vin
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Am new to JSP
Am havig an arraylist of objects and I have set the arraylist in request,passed the ctrl to a jsp.How can I display the data there.Say my object"memberObject" is having attribute like name,id,age etc.There are many instances of this memberObject in the arrayList.I jsp am geeting the arraylist with the objects.But I dont know how to print it.Like I want to print "memberObject.name(),memberObject.id ..etc.Pleae help me..am struck here....

Sree
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66188
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use the JSTL <c:forEach> tag to iterate over the collection. Then use the EL to display the properties of the beans.
 
sree vin
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much...but as i told am very new to JSTl...It would be really helpful if you can guide me ,in detail...say by one eg,Also what all we want to include for using JSTl.In my application am getting the arayList from request atribute..

Thanks
Sree
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66188
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read through the JSTL Specification. It explains all.
 
sree vin
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok...Thank you..Let me try

Sree
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!