Render List returned via JQuery
Hello ,
@ Server side , I have a list into a bean .
@ Client side , I use :
- function callJava() {
- $.getJSON("../reference/test", { name: $('#name').val()}, function(result) {
- // result is a bean that has a list
- alert(result.fooList.length);
- });
- }
I need to be able to render this list later via FreeMarker .
What is killing me when I replaced this list with a String variable , it works fine like :
- function callJava() {
- $.getJSON("../reference/test", { name: $('#name').val()}, function(result) {
- alert(result.stringVariable)
-
- });
- }
How could I deal with the string into that bean !!