Results 1 to 2 of 2
  1. #1
    skveera is offline Member
    Join Date
    Feb 2010
    Posts
    1
    Rep Power
    0

    Angry Updating a html automatically

    Hi All,

    I have to write either jsp or servlet which reads a file and displays it on a page. The file gets updated and at the same time the page should also get updated.

    Thanks in advance,
    Sai Krishna.

  2. #2
    travishein's Avatar
    travishein is offline Senior Member
    Join Date
    Sep 2009
    Location
    Canada
    Posts
    684
    Rep Power
    6

    Default

    uh, there is no simple way i can think of to have the file get displayed again when it was updated.
    maybe some complex custom polling of the server from the browser, such as an ajax call on a timer.
    also, but depending on what the file contents are this wouldn't even work. for example, if the file is a pdf file, it would be handled by the browser's view plugin, and the only way to make it refresh would be to have the user click a link or reload it manually.

Similar Threads

  1. Automatically set the path
    By mlibot in forum New To Java
    Replies: 9
    Last Post: 01-26-2010, 08:18 AM
  2. Automatically Generate an XML file
    By svpriyan in forum XML
    Replies: 2
    Last Post: 06-25-2009, 05:46 AM
  3. parsing and updating html file using JSP.
    By tskarthic in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 04-02-2009, 09:12 PM
  4. ActionListener run automatically problem
    By cassysumandak in forum New To Java
    Replies: 1
    Last Post: 03-23-2009, 09:42 PM
  5. Replies: 0
    Last Post: 03-23-2009, 04:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •