You shouldn't save the html to a file. What will heappen when you have 2
concurrent requests?
Instead let a servlet send the image directly to the client.
You can use an html jsp page to show the image.
Just use something like
<IMG src="/servlet/ImageGenerator?option=<%=option%>">
I used something like that for my graffiti wall:
http://www.gojasper.be/wall.jsp
As for the original question, size of an image, open the image in your
browser, right click, properties.
Geert Van Damme
BTW, I don't know why this is, but for some users, the reply address is
their own name, for others, it's the list.
very confusing IMO
> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Lesley Eadie
> Sent: dinsdag 4 juli 2000 17:50
> To: [EMAIL PROTECTED]
> Subject: Re: Image Size
>
>
> Hi Branko
>
> I am trying to create an image (charts etc) from data retrieved from a
> database, save this image as a gif file on my server, then
> generate html img
> tags to send the image to the client. I am using JSP and EJB. The beans
> handle data retrieval and image, html generation. The JSP has to display
> the results from the client queries.
>
> Thanks your a darling!
> DD xx
> ----- Original Message -----
> From: "Branko Kaucic" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, July 04, 2000 5:18 PM
> Subject: Re: Image Size
>
>
> > Hi!
> >
> > Tell more about what you need. I made some servlets that produce images,
> > so maybe I can help.
> >
> > Branko
> >
> > On Tue, 4 Jul 2000, Lesley Eadie wrote:
> >
> > > Hi
> > > are you using jsp to generate images server side and display them on a
> > > client browser? If you are or anyone else is, I need your help. I'm
> going
> > > mad trying to do it.
> > >
> > > Thanks in advance a'body!
> > > DD xx
> > >
> > > ----- Original Message -----
> > > From: "anderson" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Tuesday, July 04, 2000 3:21 PM
> > > Subject: Image Size
> > >
> > >
> > > > How can I get the image width and height (GIF and JPF) ?
> > > >
> > > > thanks
> > > > anderson
> > > >
> > > >
> > >
> ==================================================================
> =========
> > > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > > JSP-INTEREST".
> > > > Some relevant FAQs on JSP/Servlets can be found at:
> > > >
> > > > http://java.sun.com/products/jsp/faq.html
> > > > http://www.esperanto.org.nz/jsp/jspfaq.html
> > > > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > > > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> > > >
> > >
> > >
> ==================================================================
> =========
> > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> > > Some relevant FAQs on JSP/Servlets can be found at:
> > >
> > > http://java.sun.com/products/jsp/faq.html
> > > http://www.esperanto.org.nz/jsp/jspfaq.html
> > > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> > >
> >
> >
> ==================================================================
> =========
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> > http://java.sun.com/products/jsp/faq.html
> > http://www.esperanto.org.nz/jsp/jspfaq.html
> > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> >
>
> ==================================================================
> =========
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets