Hello,
i´, a vaadin Newbie and this is my first Post.
I have a problem while I´m deploying a project to .war.
I just want to open a csv- file on desktop but the war appication doesn´ react.
When I run my application from eclipse the file opens on Desktop.
Does anyone know where I have to store my File to access it from a War?
Here is the code:
WebApplicationContext context = (WebApplicationContext) getApplication().getContext();
File webinfFolder = new File ( context.getHttpSession().getServletContext().getRealPath("WEB-INF/Editor1.csv") );
System.out.println(webinfFolder.getAbsolutePath());
File file= new File(webinfFolder.getAbsolutePath());
try {
Desktop.getDesktop().open(file);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
Thanks in Advance
Jurij