Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JSP Interest »

Image using response.getOutputStream...

Narayanan Ravi Chandran

2004-02-25

Replies:

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


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


<%@(protected)" %>
<%@(protected)" %>
<%@(protected)" %>
<%@(protected)" %>
<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 listserv@(protected)".
For digest: mailto listserv@(protected)".

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


©2008 junlu.com - Jax Systems, LLC, U.S.A.