• Post Reply Bookmark Topic Watch Topic
  • New Topic

regular website updation. Is there any easy way ?  RSS feed

 
shahabas shabeer
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,
I have a small question.
I am a programmer developing web applications using jsp/servlet and jboss.
If I change a single line in a file, I have to create a war with all the jsp/servlet, WEB-INF and other required files and redeploy the entire application.

My question is, what if my website has a page, which needs to be updated
on a regular basis.
For example, A site with a "What's New?" page, which needs to be updated every day.

Is there an easy way to update only this page in the site as we can't expect the client to create a war and deploy it every day... ?

Thanks
Shahabas E Shabeer

[ June 02, 2005: Message edited by: shahabas shabeer ]
[ June 02, 2005: Message edited by: shahabas shabeer ]
 
Mallesham Karnati
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are many ways to achieve this. The simplest solution I can think of is this.
1. Create somthing like whatisnew.jsp page and include in it a html file like whatisnew.html. Your jsp page basically calls this html page every time the user accesses it.
2. Update the html file as many times as you want.
 
Steven Bell
Ranch Hand
Posts: 1071
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no reason to redeploy the whole war that I know of. You can just replace the one file with the new one.

While I'm working I have a tomcat context pointing to my development directory on my local machine. I see the changes as I save them. I do have to leave tomcat's page caching off, but I'm sure there is a way to leave that on and be able to tell tomcat to drop it's cache manually.
 
Nigel Browne
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use ANT to build and deploy you application.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66307
152
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Better yet, don't change the page at all. Store the variable info in a database and pull it from the DB when the page displays. That way you can dynamically change the content without re-deploying anything.
 
Nigel Browne
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I concur with Bear that it is best to pull you variable info from a database, but I would still build and deploy the application using ANT.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!