Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to pass non spring parameter to tag files.

 
David Wolf
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks,

I am wondering if it is possible to pass a non string parameter to a JSP 2.0 style page tag.

The reason why I ask is that I am wondering if it is possible to obtain macro like behavior (such as when using velocity or freemarker) with standard jsp pages through the use of page tag files.

Thanks!

Dave
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64843
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any object type can be passed as long as the tag implementation is designed to support it.
[ December 02, 2007: Message edited by: Bear Bibeault ]
 
David Wolf
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Didn't notice that there was an attribute type

<%@ attribute type="java.util.List" name="someVar" %>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic