def render_chart_get_xml_from_action(chart_swf,controller_name,action_name,params,chart_id,chart_width,chart_height,debug_mode,register_with_js,&block)
logger.info("The controller to be contacted is " + controller_name)
logger.info("The action to be performed is " + action_name)
str_xml= render_component(:action=>action_name,:controller=>controller_name,:params=>params)
logger.info("The xml obtained from the given action is " + str_xml)
render_chart(chart_swf,"",str_xml,chart_id,chart_width,chart_height,debug_mode,register_with_js,&block)
end