This week's book giveaway is in the Java 9 forum.
We're giving away four copies of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications and have Sander Mak & Paul Bakker on-line!
See this thread for details.
Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Calling webpages from a servlet  RSS feed

 
Bob Burnquist
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know this must be really easy to do but I may be overcomplicating this/confusing myself.

I basically have a servlet, which needs to call n number of web pages (in order for these pages to render themselves (and cache server-side)).

I do not need these pages that I have called to be shown/rendered for any one. The process is simply one of calling the pages to force the serverside cacheing.

Whats the best way of doing this from a servlet point of view?

Cheers.
[ March 10, 2006: Message edited by: Sebastian Patten ]
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try to use RequestDispatcher.include
 
Bob Burnquist
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh and thinking about it further, I guess this doesnt need to essentially be a Servlet, as this will be an automated task called by cron.

Hmmm.

Ill have a look at the requestdispatched cheers.
[ March 10, 2006: Message edited by: Sebastian Patten ]
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!