Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

what is the relative path ?

800340Dec 8 2006 — edited Dec 13 2006
Hi there,

I have a struts application that produce a pdf file: A user complete a form and at the end he supposes to see the pdf form on the screen. for some reason, I can't tell what is the path pointing to the specific folder where I saved the file.

This works:
folder == C:/eclipseProjects/registration/pdfFolder
PdfWriter.getInstance(document, new FileOutputStream(folder+"/"+filename));
but it's not the relative path. I mean, just as I do this in jsp:
src="<%=request.getContextPath()%>/javascript/theme.js">
I wonder what should be the path pointing to the pdfFolder.
(I tried ./pdfFolder or /pdfFolder ...nothing)

thanks for any help
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 10 2007
Added on Dec 8 2006
7 comments
149 views