• Post Reply Bookmark Topic Watch Topic
  • New Topic

Pass non string object as attribute to Tag File

 
Sudhanshu Gupta
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all

I am trying to create a tag file to display the contents of an ArrayList as Unordered List.
For this I need to pass an ArrayList Object to the tag file.

Here is what I have done.

The jsp file:




The tag file:



However this doesnt seem to work.
Where am I mistaken??
please help.

Thank you

Sudhanshu

 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65530
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Of course not. You are mixing scriptlets with the EL. Won't work.

Either stay in 2002 and continue to use scriptlets, or join us in 2009 and leave scriptlets on the scrap heap where they belong.
 
Sudhanshu Gupta
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bear Bibeault
Thank you very much for such a quick response.
I used the scriptlets just for testing the tag file.
Lazy me.
I created the list object in a servlet now and its working as expected.

Thank you very much.

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