i have in ftl: <input type="file" id="doc6" name="documente"> in .js: var lx = $("#longx").val(); var ly = $("#laty").val(); var jud = $("#judetpunctlucru").val(); var doc6type = $("#doc6type").val(); var doc6 = $('doc6').val(); validatecoords: function (lx, ly, jud, doc6type, doc6) { var data = { lx: lx, ly: ly, jud: jud, doc6type: doc6type, doc6: doc6 }; var url = contextpath + '/validarecoord'; return getjsondata(url, data); } and in controller: @requestmapping(value = "/validarecoord", method = requestmethod.get, produces = mediatype.application_json_value) @responsebody public map<string, object> getvalidcoord(@requestparam("lx") string lx, @requestparam("ly...
Comments
Post a Comment