GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Tech FAQs  >  Programming  >  JSP

 Print  |  
Question:  currently we are working on a project which includes charts to be displayed using JFreeCharts.we have two JSP\'s for displaying Pie and another one for Bar chart.So how do i get two graphs in a single page which is in two different JSP\'s.



January 01, 2006 02:21:32 #1
 grkapadia   Member Since: December 2005    Total Comments: 2 

RE: currently we are working on a project which includ...
 

Create a single JSP and use iframe to display multiple charts from different jsp files.

For eg.

<iframe src=http://some.com/jsp/pieChart.jsp?<parameters (if any)> width=430 height=245 frameborder=0>       </iframe>

<iframe src=http://some.com/jsp/barChart.jsp width=430 height=245 frameborder=0>       </iframe>

Modify the size of iframe as per your requirement.

This should work.

     

 

Back To Question