Bom pessoal já vi alguns tópicos com relação a isso, porém comigo não funcionou.
[color=red]JAVASCRIPT
[/color]
[color=red]JAVA
[/color]
String retorno = URLDecoder.decode(request.getParameter(“codDocumento”), “UTF-8”);
String[] c = retorno.split("#");
LocalizadorGeograficoService ds = new LocalizadorGeograficoService();
try {
List collection = ds.findEnderecoFornecedorByFiltro(new Integer(c[0]), new Integer(c[1]), new Integer(c[2]),c[3]);
if(collection.size()>0){
for (int i = 0; i < collection.size(); i++) {
EnderecoFornecedorVO item = (EnderecoFornecedorVO) collection.get(i);
if(item.getLatitude()!= null&& item.getLongitude()!= null){
String lat = item.getLatitude();
String log = item.getLongitude();
// CHAMAR JAVASCRIPT
}
}
//}
}else{
out.print("Retornou Nenhum");
}
} catch (Exception e) {
out.print(e.getMessage());
}
Como posso fazer isso?
Valeu Obrigado.