Dynamically generated files require folder refresh [message #206165] |
Thu, 19 April 2007 16:35 |
Eclipse User |
|
|
|
Originally posted by: mark.thurston.aruplab.com
I am using Eclipse to develop web applications in Java. I use the Tomcat
plugin for Eclipse. The problem that I have is that my application
dynamically creates a PDF file in a particular folder. When this happens
the web application then redirects the user to that file. When I run this
in a browser I get a 404 error. So I checked the file system and the file
is in fact there. So in Eclipse I refreshed the folder it is supposed to
be in and it shows up. When I then go into the browser again, the file is
now there.
This is very frustrating when I am debugging the code used to generate the
PDF as I have to hit the URL, then go to Eclipse and refresh the folder
then go back and reload the URL.
Is there any way that I can fix this so that I do not have to refresh the
folder every time a PDF is generated?
Thanks.
Mark
|
|
|
Re: Dynamically generated files require folder refresh [message #206183 is a reply to message #206165] |
Thu, 19 April 2007 17:42 |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
Mark,
Maybe Window->Preferences->General->Workspace and enabling "Refresh
automatically" will help. It think this might only work if the Eclipse
window losses and gains focus though...
Mark wrote:
> I am using Eclipse to develop web applications in Java. I use the
> Tomcat plugin for Eclipse. The problem that I have is that my
> application dynamically creates a PDF file in a particular folder.
> When this happens the web application then redirects the user to that
> file. When I run this in a browser I get a 404 error. So I checked
> the file system and the file is in fact there. So in Eclipse I
> refreshed the folder it is supposed to be in and it shows up. When I
> then go into the browser again, the file is now there.
>
> This is very frustrating when I am debugging the code used to generate
> the PDF as I have to hit the URL, then go to Eclipse and refresh the
> folder then go back and reload the URL.
>
> Is there any way that I can fix this so that I do not have to refresh
> the folder every time a PDF is generated?
>
> Thanks.
>
> Mark
>
|
|
|
|
Re: Dynamically generated files require folder refresh [message #206223 is a reply to message #206215] |
Thu, 19 April 2007 18:57 |
Eclipse User |
|
|
|
Originally posted by: mark.thurston.aruplab.com
Actually I fixed it. Instead of creating the file in the directory that
gets published through the IDE, I found the location that Eclipse uses to
run Tomcat and wrote the file there.
For those who may have difficulty finding the directory where Tomcat is
running, here it is:
workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp 0\webapps
|
|
|
Powered by
FUDForum. Page generated in 0.09431 seconds