aspose file tools*
The moose likes JSP and the fly likes refreshing the page automatically if the configuration file changes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "refreshing the page automatically if the configuration file changes " Watch "refreshing the page automatically if the configuration file changes " New topic
Author

refreshing the page automatically if the configuration file changes

anitha meena
Ranch Hand

Joined: Oct 22, 2007
Posts: 40
Hi All,

Am trying to create a small web page in JSP in which it will get it css file name from a configuration file and load it , if the values in the confiugration file has been changed then this jsp page should be refreshed automically

I have write and collect some code from the net but am getting some error

the following are the files


please help me in that
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61656
    
  67

anitha meena wrote:I have write and collect some code from the net but am getting some error
I anxiously await the details of the error.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
anitha meena
Ranch Hand

Joined: Oct 22, 2007
Posts: 40
Hi thanks alot for the reply ,

once you run the application i mean after opening the web page
http://localhost:8080/JSP-Listener-File/index.jsp


after doing that , open the configuratin file
config.properties and make a change to the property
cssFileName=style2.css
(if it is style1.css change it style2.css and vice versa)


save the changes , once you did this you ll see the error
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

It would be better if you posted the relevant parts of the error message here.
You're more likely to get useful help here if you can communicate the problem without requiring users to to test your application on another server.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Crossposted: http://forums.sun.com/thread.jspa?threadID=5358888
Please read this: http://faq.javaranch.com/java/BeForthrightWhenCrossPostingToOtherSites
anitha meena
Ranch Hand

Joined: Oct 22, 2007
Posts: 40
Hi Thanks alot for the advise ,

I am really gaining knowledge from such replies , i ll try to fix the issues and let you know if i face any problem


Thanking you again
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: refreshing the page automatically if the configuration file changes