I have a jsp page where I would like to include a chart. I simple called the servlet using the image source attribute and setting it to the servlet.
<img src="/MyServlet" />
The servlet creates a chart based upon session attributes that are created. When I enter the name of the servlet in the address bar, it creates the chart. The content type in the servlet is image.png.
But if I call the servlet by using the image tag it will not appear.
Can somebody tell me what I'm doing wrong.
calling from a jsp page
-
- Posts: 8
- Joined: Mon Jul 28, 2003 5:07 pm
Did you receive an answer or find a solution?
Actually what you do looks ok. (I do quite the same (only using Struts actions) and I have no problems)
If you want you can send me your servlet and I have a look at the code.
Regards
Patrick (patrick.herber@ticino.com)
Actually what you do looks ok. (I do quite the same (only using Struts actions) and I have no problems)
If you want you can send me your servlet and I have a look at the code.
Regards
Patrick (patrick.herber@ticino.com)