This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply 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: 56185
    
  13

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 ]

[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About 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" %>
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How to pass non spring parameter to tag files.
 
Similar Threads
problem loading jsp from servlets
How to dispaly info in textfield
Tag question
JSF EL: nested ${}
include a jsp within a jsp and passing a parameter