html - where put images files in big multimodules web app -
i have big web application (jsp). best way put images files? put images files in multi modules web application?
i have many images have easy, separate access modify them. best way separate project can redeploy without stop main application part. solution acceptable?
yes, acceptable. can create "assets" project, , have images/module1/
, images/module2/
folders, etc.
just, in main application, need configure path assets application. can reside on different host. example http://assets.yoursite.com
. , in main application you'll have:
<img src="${assetserver}/images/module1/logo.png" />
(the assetserver request attribute may put there , configured in multiple ways, depending on setup , preferences. 1 example - configure context-param in web.xml, , put in request filter)
Comments
Post a Comment