img tag not loading
Hi i have a problem below is the code generated using an xsl
<img src="/contextName/servlet/chartservlet?type=1&graph=2" />
the xsl used is
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:output method="html"/>
<xsl:template match="/Root">
<xsl:for-each select="Graphs">
<xsl:for-each select="Graph">
<img src="/contextName/servlet/chartservlet?type={GraphType}&graph={Image}" />
afsd
</xsl:for-each>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
As u see i call a servlet which actually loads the image.
The first time my jsp page loads it works now the next time i try to change the values of the graph and submit to generate a new graph, the xsl loads the image tag but does not call the chartservlet. can u please tell me why this happens and how to solve it
Thanks a mil
|