Hi,

I am new to jasper reports. I am passing parameters as following.

List<String> courseModules = new ArrayList<String>();
        List<String> marks = new ArrayList<String>();
        
        courseModules.add("spoken english");
        courseModules.add("Medical Transcription");
        marks.add("20");
        marks.add("30");
                
        Map model = new HashMap();
        model.put("courseModules", courseModules);
        model.put(“marks”, marks); 

I use ResourceBundleViewResolver. In .jrxml, I map parameters as 

<parameter name="courseModules" class="java.util.List"/>
<parameter name="marks" class="java.util.List"/>

I got printed as 

[spoken English, Medical Transcription]
[20, 30]

But, my requirement is, I have to print like

   Course                       Mark
Spoken English                  30
Medical Transcription   40

I don’t know how to iterate the elements in the list in jrxml or any other
solution will be good as well.
Please, help me

Thanks
Vishnu
-- 
View this message in context: 
http://www.nabble.com/List-of-parameters-to-PDF-tp25041091p25041091.html
Sent from the jasperreports-questions mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
jasperreports-questions mailing list
jasperreports-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions

Reply via email to