Struts JSON picture display problems

callbacks:{
onComplete: function(id, fileName, responseJSON) {
if (responseJSON.success) {

$('#fff').append('<img src="" alt="">');

alert(responseJSON.allpath);
}
}
},
debug: true
});

Master to help have a look responseJSON.allpath is the return of the image path JSON,
How do I display pictures.
$('#fff').append('<img src="responseJSON.allpath" alt="">');No way
$('#fff').append('<img src=responseJSON.allpath alt="">');Also no

Started by Alva at November 11, 2016 - 3:43 PM

var scr=responseJSON.allpath;
$('#fff').append("<img src="+scr+" alt="">");

Posted by Stan at November 23, 2016 - 4:15 PM

,Another look at the path is it right? Your path, pages <base href= "<%=basePath%> />" if not to consider the relative path is correct

Posted by Claudia at December 06, 2016 - 4:36 PM

Don't write responseJSON.allpath in quotation marks inside. Or as a string.

Posted by Monica at December 16, 2016 - 5:28 PM

Posted by Allen at December 28, 2016 - 6:17 PM