SuperMoonster
Programmer
Hello everyone,
I'm having this weird problem with JasperReports. I have a web application that generates reports in the default way (showing it on a swing window). I tested it on the server and it was working just fine.
Then, I went to one of the client machines to test the reports. I clicked on the link, no error showed, like if things were working just fine, but the report did not open. I kept trying, when I realized, astonished, that the report windows were opening on my server machine, and not on the client machine I was requesting them from!
Has anyone seen this happen? I suppose it's because of some wrong settings or stuff.
Here's how I call my reports:
My server runs on a SUSE Linux 9.3 box, and all client machines run Windows XP.
I'm using java 5.
Thank you all for helping.
I'm having this weird problem with JasperReports. I have a web application that generates reports in the default way (showing it on a swing window). I tested it on the server and it was working just fine.
Then, I went to one of the client machines to test the reports. I clicked on the link, no error showed, like if things were working just fine, but the report did not open. I kept trying, when I realized, astonished, that the report windows were opening on my server machine, and not on the client machine I was requesting them from!
Has anyone seen this happen? I suppose it's because of some wrong settings or stuff.
Here's how I call my reports:
Code:
JasperReport jasperReport = JasperManager
.loadReport(up.getPathAplicacao() + "/WEB-INF/classes/relatorios/Rel_mp_falta_op.jasper");
RelatorioMPNecessariaDataSource ds =
new RelatorioMPNecessariaDataSource(lista);
JasperPrint impressao = JasperFillManager.fillReport(jasperReport, parametros, ds);
JasperViewer viewer = new JasperViewer(impressao, false);
viewer.show();
My server runs on a SUSE Linux 9.3 box, and all client machines run Windows XP.
I'm using java 5.
Thank you all for helping.