Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

refreshing the page automatically if the configuration file changes

 
anitha meena
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64629
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
anitha meena
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Bauke Scholtz
Ranch Hand
Posts: 2458
 
anitha meena
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic