Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 5 of 5

Thread: Servlet clean temporary files

  1. #1
    Junior Member
    Join Date
    Mar 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Servlet clean temporary files

    Hello,

    I wanna to delete user browser temporary files when hes opening my website. Is it possible?

    (I wanna to delete temporary files, because of javascript, because I often change them.. always my users gets errors, because they didn't clean temporary files. Maybe to reload javascript are other way? don't need to delete browser temporary files?)

    P.S. sorry for my bad english.

    Regards,
    sAdFella


  2. #2
    Think of me.... Mr.777's Avatar
    Join Date
    Mar 2011
    Location
    Pakistan
    Posts
    1,136
    My Mood
    Grumpy
    Thanks
    20
    Thanked 82 Times in 78 Posts
    Blog Entries
    1

    Default Re: Servlet clean temporary files

    Welcome to Java Programming Forums.
    Where you got stuck?
    Read the Forums Rules.
    Anyone who stops learning is old, whether at twenty or eighty. Anyone who keeps learning stays young. The greatest thing in life is to keep your mind young.

    - Henry Ford

  3. #3
    Junior Member
    Join Date
    Mar 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Servlet clean temporary files

    At the moment, im just thinking about doing that.
    But I had some questions:
    1) Is this best way, by trying to access users folder where is saved all temporary files and delete?
    2) Can I access that folder from server side and delete the content?
    3) Maybe can i do anything else, that always reload javascripts.

    Im looking for advise.

    Regards,
    SadFella
    Last edited by sAdFella; March 9th, 2012 at 05:54 AM.

  4. #4
    Think of me.... Mr.777's Avatar
    Join Date
    Mar 2011
    Location
    Pakistan
    Posts
    1,136
    My Mood
    Grumpy
    Thanks
    20
    Thanked 82 Times in 78 Posts
    Blog Entries
    1

    Default Re: Servlet clean temporary files

    1. No.
    2. Not without User's permission.
    3. Yes.
    Anyone who stops learning is old, whether at twenty or eighty. Anyone who keeps learning stays young. The greatest thing in life is to keep your mind young.

    - Henry Ford

  5. #5
    Member
    Join Date
    Feb 2012
    Posts
    58
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Default Re: Servlet clean temporary files

    Quote Originally Posted by sAdFella View Post
    Hello,

    I wanna to delete user browser temporary files when hes opening my website. Is it possible?

    (I wanna to delete temporary files, because of javascript, because I often change them.. always my users gets errors, because they didn't clean temporary files. Maybe to reload javascript are other way? don't need to delete browser temporary files?)

    P.S. sorry for my bad english.

    Regards,
    sAdFella
    I suggest you to use some sort of cache expiration (can done through HTML and server side script). That way the browser always gets the latest content.

Similar Threads

  1. [SOLVED] jar file Built(clean and build) perfectly, but not running as jar
    By chronoz13 in forum What's Wrong With My Code?
    Replies: 18
    Last Post: July 11th, 2011, 12:41 PM
  2. Java Assignment - Almost done I think. Clean-up help?
    By geremyteak in forum What's Wrong With My Code?
    Replies: 1
    Last Post: February 27th, 2011, 01:24 AM
  3. Trying to clean this part of my progam up, but cant seem to get it.
    By Mob31 in forum What's Wrong With My Code?
    Replies: 5
    Last Post: February 25th, 2011, 04:49 PM
  4. Please help me clean up my code!
    By Java Neil in forum What's Wrong With My Code?
    Replies: 8
    Last Post: February 25th, 2011, 02:48 PM
  5. Temporary Presence support in SMACK
    By joykrishna in forum Java Networking
    Replies: 0
    Last Post: February 15th, 2011, 01:26 AM