Louis Wang wrote:I have a module for creating images dynamically, which is not a servlet. I'm trying to store the images on web server
Exactly how are they being stored?
My question is how can I get to know the path of WebContent from my module
What is "WebContent"? A folder? TellTheDetails please.
I hold a reference to the HTTPRequest, does it help?
After the request is over? I hope not! Never hold a reference to a container object.
Essentially you treat it like any other image. The <ing> tag references a URL that serves the image data. That URL is usually to a static file or a servlet that streams the image data.