Re: How to load image into a jsp?

"Nathaniel G. Auvil" <[email protected]>
Newsgroups gmane.comp.krysalis.jcharts.user
Message-ID <[email protected]>
--- Anubhav Kale <[email protected]> wrote:
> Hello...
> 
> I checked PieChart2DServlet.java .
> 1)Can you please elaborate on how to load this servlet from jsp (I do 
> not want to give any url etc.So basically I dont want to call the 
> servlet based on some event).


HTTP is based on URL's so you have to use them.  Simply have a HTML <img
src="...someURL/execute/myChartServlet"/>

 
> 2)By storing it in session do you mean the
> 
> ServletEncoderHelper.encodeJPEG13 method?
> 
> "call the servlet to load the chart as an image." Can you please explain how to do this exactly?
> 
> Thanks a lot
> 
> Anubhav
> 
> 
> 
> 
> 
> 
> Ducret, Gilles (MSCI) wrote:
> 
> >Check the examples, it works fine.
> >
> >Use the servlet to generate the chart and store it in the session.
> >
> >>From the jsp, call the servlet to load the chart as an image.
> >
> >It is described in the examples and works very well.
> >
> >Regards
> >
> >Gilles
> >
> >-----Original Message-----
> >From: [email protected]
> >[mailto:[email protected]] On Behalf Of Anubhav
> >Kale
> >Sent: Tuesday, January 13, 2004 11:41 AM
> >To: [email protected]
> >Subject: [jCharts-users] How to load image into a jsp?
> >
> >
> >Hello...
> >
> >I want to write a jsp. To this page some data will be passed,based on 
> >this data I want to draw a piechart. What code do I have to write in the
> >
> >jsp (to load the image,location of class that creates the image etc)
> >
> >Thanks
> >
> >Anubhav
> >
> >
> >
> >-------------------------------------------------------
> >This SF.net email is sponsored by: Perforce Software.
> >Perforce is the Fast Software Configuration Management System offering
> >advanced branching capabilities and atomic changes on 50+ platforms.
> >Free Eval! http://www.perforce.com/perforce/loadprog.html
> >_______________________________________________
> >jCharts-users mailing list
> >[email protected]
> >https://lists.sourceforge.net/lists/listinfo/jcharts-users 
> >--------------------------------------------------------
> > 
> >NOTICE: If received in error, please destroy and notify sender.  Sender does not waive
> confidentiality or privilege, and use is prohibited. 
> > 
> >
> >
> >-------------------------------------------------------
> >This SF.net email is sponsored by: Perforce Software.
> >Perforce is the Fast Software Configuration Management System offering
> >advanced branching capabilities and atomic changes on 50+ platforms.
> >Free Eval! http://www.perforce.com/perforce/loadprog.html
> >_______________________________________________
> >jCharts-users mailing list
> >[email protected]
> >https://lists.sourceforge.net/lists/listinfo/jcharts-users
> >
> >
> >  
> >
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: Perforce Software.
> Perforce is the Fast Software Configuration Management System offering
> advanced branching capabilities and atomic changes on 50+ platforms.
> Free Eval! http://www.perforce.com/perforce/loadprog.html
> _______________________________________________
> jCharts-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jcharts-users


__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus


-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.