No. The method expects several complex objects, but you are passing in mostly
strings. You need to pass in the correct type of objects.
ie
ServletContext ** complex object
, HttpServletResponse ** complex object
, String ** plain string
, String ** plain string
, Map ** complex object
)
> JavaCast("string", "SESSION.mail")
Lose the quotes around the variable name. Otherwise you are just passing in the
literal string "SESSION.mail". Not the +value+ of that variable.
> JavaCast("structure", "attributes"));
There is no such type as "structure". But like I said, you +should+ just be
able to create a CF structure of arrays. Then pass it in as is. No javacasting.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346850
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm