I am working on a project in which I have to create a pdf file at run time and save it in webapp directory and than I have to display it in next view (xhtml). So How do I access webapp through url to display the file in next view. I have deployed the application to tomcat7 container.
String pdfFilePath = generatePDFFile(path.concat("/1.pdf"));
This is the code to display the pdf in .xhtml
file
<embed src="path" width="718" height="700"/>
what should be the path
in both locations to access the file?