Hi,

I am adding the below absolute path in java code and compiled in a war file
and uploaded in tomcat 9.0.24 servlet/jsp container.

file=createPDF("/opt/tomcat9/webapps/statementspdf/"+accountId+statementId+".pdf",
> statementsEntityATOS);


 Is there a way to use relative path instead of absolute path to store all
pdf files in /opt/tomcat9/webapps/statementspdf/ directory. Any examples to
help me understand it better.
For
example file=createPDF("../webapps/statementspdf/"+accountId+statementId+".pdf",
statementsEntityATOS);

Thanks in advance and i look forward to hearing from you

Best Regards,

Kaushal

Reply via email to