image « URL « JSP-Servlet Q&A

1. sendind an image URL from servlet to web document

I'm trying to send an image url to the browswer using javascript and servlet. I'm doing the following In html :

 <script type="text/javascript" src="../licenta/WebRoot/Scripts/choosebanner.js"></script>
In javascript :
   window.onload = Onload;


2. How to create image of given URL?

3. JSP - How to link url to an image?