Hi Stefan,
Thanks for your help. My pages are coming up properly, each hyperlink working fine. But I'm left with one problem.
My pages have image tags too and these images are also lying on ftp server. And clue that i have got is you cannot return content type as HTML and Image in one response from servlet. So my assumption is I need to write another servlet that is invoked when html page is rendered on browser.
I'd do the following:
1. Return the html page from servlet1.
2. Content returned by servlet1 will have image tags like <img src="xdoimgFv.png">
3. When html page is being rendered on encountering img tag, servlet 2 will be invoked.
4. Servlet 2 will download the image from ftp and return the response object as image.
Is this thought correct?
Any pointers or source code will be really helpful. I'm new to servlet programming thus any sort of information will help.
Thanks,
Tarun