Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Dynamically generated files require folder refresh
Dynamically generated files require folder refresh [message #206165] Thu, 19 April 2007 16:35 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 #206215 is a reply to message #206183] Thu, 19 April 2007 18:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mark.thurston.aruplab.com

I tried that and it is still doing the same thing.
Re: Dynamically generated files require folder refresh [message #206223 is a reply to message #206215] Thu, 19 April 2007 18:57 Go to previous message
Eclipse UserFriend
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
Previous Topic:malformedurlexception
Next Topic:Export RCP application
Goto Forum:
  


Current Time: Tue Apr 23 08:57:54 GMT 2024

Powered by FUDForum. Page generated in 0.09431 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top