wood burning stoves 2.0*
The moose likes JSP and the fly likes How to pass non spring parameter to tag files. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "How to pass non spring parameter to tag files." Watch "How to pass non spring parameter to tag files." New topic
Author

How to pass non spring parameter to tag files.

David Wolf
Greenhorn

Joined: Dec 02, 2007
Posts: 4
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

Joined: Jan 10, 2002
Posts: 61103
    
  66

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 ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
David Wolf
Greenhorn

Joined: Dec 02, 2007
Posts: 4
Didn't notice that there was an attribute type

<%@ attribute type="java.util.List" name="someVar" %>
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to pass non spring parameter to tag files.