Boa tarde, fiz um código para mostrar um relatório via web, mas meu projeto não usa nenhum framework, aqui está o codigo do relatorio…
public void GeraRelatorio() throws SQLException, ClassNotFoundException, JRException{
Connection cnn = Conexoes.getConexao();
String path = getServletContext().getRealPath("/");
HashMap mapa = new HashMap();
JasperPrint relatorio = JasperFillManager.fillReport(path+"atenddata.jasper", mapa, cnn);
JasperViewer.viewReport(relatorio);
}
a exceção gerada é:
java.lang.ClassNotFoundException: org.springframework.core.io.Resource
pergunta, para ter relatórios em projetos web eu sou obrigado a usar o spring ?
Obrigado