Hi,

I am finding a typical problem with the below JSP code.  The problem is when
I use the response.getOutputStream() to display the image generated @ server
the text and text boxes are never shown in the page, I am getting only the
image.

Could some body help me on this.

Thanks in advance.
RCDran


----------------------------------------------------------------------------
----


<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/common/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/common/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/common/struts-logic.tld" prefix="logic" %>
<html:html locale="true">
<head>
    <title><bean:message key="chart.title"/></title>
    <html:base/>
</head>
<body bgcolor="#9F9F9F">
<html:form name="chartForm" action="chart.do" type="ChartForm"  >

<bean:message key="chart.aus" />
<input type="text" name="AUS" maxlength="16" size="16"
value="<%=session.getAttribute("AUS")%>" style="text-align:right;">
<bean:message key="chart.eur" />
<input type="text" name="EUR" maxlength="16" size="16"
value="<%=session.getAttribute("EUR")%>" style="text-align:right;">
<bean:message key="chart.jpy" />
<input type="text" name="JPY" maxlength="16" size="16"
value="<%=session.getAttribute("JPY")%>" style="text-align:right;">
<bean:message key="chart.usd" />
<input type="text" name="USD" maxlength="16" size="16"
value="<%=session.getAttribute("USD")%>" style="text-align:right;">

<input type="submit" name="submit" value="Pie Chart">
<input type="reset" name="reset" value="Cancel">

<html:img src="<%=response.getOutputStream()%>" width= "300" height =
"200">);

</html:form>
</body>
</html:html>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com

Reply via email to