In a page JSP y get by JSTL a var ModelAndView in "${model}
In this page I use JAVASCRIPT to update a DIV with ajax.updater, the code here:
document.getElementById("idFa").value=image.title;
var frm2="${model}";
var dataString = 'mail=acevallo@hotmail.com&idFar=' + image.title + "&frm2=${model.farmers}";
new Ajax.Updater( "pcBody_content2", "tabProductsFruitC2.jsp", { method: "get",parameters:dataString,evalScripts: true });
my problem is, when I update the DIV with the new page tabProductsFruitC2.jsp. In this new page I haven't the var ${model}, so I have that send by parameter this var.
I tried it with var frm2, but it convert my var in string and I can not my modelandview var. How I can send by parameter my model var ${model}.
thanks, guys