andyberlin2000
Programmer
I want to send my webpage from a servlet, that dynamically creates the HTML-page from a tmeplate. Of course there will be pictures on the website. All book examples show how to handle one file if you know that you want to send THIS ONE file.
Sorry for the question but none of my books explains the MECHANISM!
I couldn't see any pictures - obviously they are not send.
The HTML page itself works fine. From the servlet do I have to send every single file (img, css) one by one?
How about the CSS file and it's images ?
Do I really have to send every single image "by hand", having to control even all CSS background images and my app's images by using getRealPath and the filename?
Where do I send them to?
Do I have to scan my HTML and my CSS for file names to be able to put my output together DYNAMICALLY?
By the way - I have no idea what getRealPath() is doing - I definitely don't get the path. ( .../WEB-INF/classes/ )
Please explain the mechanism shortly to me. I always thought ressources that are not there yet would be REQUESTED by the browser....
Thank you in advance
Andreas
Sorry for the question but none of my books explains the MECHANISM!
I couldn't see any pictures - obviously they are not send.
The HTML page itself works fine. From the servlet do I have to send every single file (img, css) one by one?
How about the CSS file and it's images ?
Do I really have to send every single image "by hand", having to control even all CSS background images and my app's images by using getRealPath and the filename?
Where do I send them to?
Do I have to scan my HTML and my CSS for file names to be able to put my output together DYNAMICALLY?
By the way - I have no idea what getRealPath() is doing - I definitely don't get the path. ( .../WEB-INF/classes/ )
Please explain the mechanism shortly to me. I always thought ressources that are not there yet would be REQUESTED by the browser....
Thank you in advance
Andreas