.war file and external ressources

Z

zak.mindbender

Hello.

I have plans of moving away from a dir for my web application such as

tomcat/webapp/myapp/ (lots of jsp's)

to distributing it as a myapp.war file instead.

However, how do I handle external ressources that do not fit into the
war file such as images, sounds and user specific files? When I just
have all my jsp files and stuff in the webapps I simply had folders
such as img/ sound/ etc... I don't want to put all that into the war
file... so where can I place the images and how do I access these from
within my application/ what is the url for such ressources?

thanks
Sachias
 
M

Manish Pandit

Hi,

Are you using apache as the front-end? If yes, then all the static
content (HTML, images, sounds...) should be a part of a directory
mapped into apache. If you do not plan on using apache but serve all
this via tomcat, you will have to bundle them all in the war. The war
gets expanded when you deploy it anyway.

-cheers,
Manish
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top