Declare String array and pass as method arg

strutstwouser <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Hi,
I have a static method that has a vararg argument. This has to be invoked
from an FTL passing it a String array. How do i declare this String array in
FTL and invoke the method with it. The static method invocation can be
invoked in Struts2 as <@s.property value="@classname@methodname(args)"/> but
how do i pass args such that it maintains the array nature and Struts2 does
not complain too..

The limitation is that the method invocation can be done only from the FTL
since the page is driven by a CMS engine and there's no intermediate
"handler" provided where code can be executed.

Thanks!
-- 
View this message in context: http://www.nabble.com/Declare-String-array-and-pass-as-method-arg-tp25064158p25064158.html
Sent from the freemarker-user mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.