File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Performance and the fly likes keeping html pages inside web application context or outside the context? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Performance
Bookmark "keeping html pages inside web application context or outside the context?" Watch "keeping html pages inside web application context or outside the context?" New topic
Author

keeping html pages inside web application context or outside the context?

vijay makam
Ranch Hand

Joined: Sep 06, 2008
Posts: 31
I am developing a web application which will have few servlets/JSP's and a lot of html pages (whose number will only increase in the future). Now, my question is, will there be any perfomance issues if all the html pages are present inside the webapp context or is it advisable to access those html pages as resource by placing them outside the web application context.

users will be uploading html pages using the application very often.

Any suggestions are highly appreciated.


Regards,
vijay
steve souza
Ranch Hand

Joined: Jun 26, 2002
Posts: 861
I would put them within the webapp context and track performance with a servlet filter like the one that comes with JAMon. JAMon would have metrics like average and max time for each of your html pages as well as jsp's and servlets.

I think you will find that all but the largest sites will perform just fine when putting the files within the context. And there is no simple answer here. If your jsp's are slow and clunky and bog down the server in general then results may vary.


http://www.jamonapi.com/ - a fast, free open source performance tuning api.
JavaRanch Performance FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: keeping html pages inside web application context or outside the context?