• Post Reply Bookmark Topic Watch Topic
  • New Topic

Displaying an arraylist using scriplet  RSS feed

 
James Winfrey
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys

The following code to display an arraylist of Objects of type MyObj is not working:



Any help is appreciable.

Thanks
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
James Winfrey wrote:
MyObj is not working


does not help us to answare, post the error stack trace . also scriptlet is a legacy style, should be avoided.

also dont assign an arraylist object to an arraylist reference type. because you would tieup with arraylist specific operatios, instead use List *interface*.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Scriptlets? In new code?

It's well past time to update your code to modern standards.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!