venujasper Posted January 16, 2009 Share Posted January 16, 2009 Hi,I am using ireport tool to print images in pdf. The image source is under my applications webroot,i need to give webroot path in the ireport tool.How to give the image source path in ireport tool for web applcations.Have any idea?Please find the below attachment.Thanks,Kitti Link to comment Share on other sites More sharing options...
anjumprevaiz Posted January 16, 2009 Share Posted January 16, 2009 place the image in the directory of ur applicationby using the ServletContext u can get path of ur image e.gServletContext objSerCtxt = getServlet().getServletContext();String ReportDir = objSerCtxt.getRealPath("/WEB-INF/reports/report.jasper"); Link to comment Share on other sites More sharing options...
venujasper Posted January 19, 2009 Author Share Posted January 19, 2009 Thank You for your reply.This is very helpful.Kitti. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now