Jump to content
We've recently updated our Privacy Statement, available here ×

vishnukumar

Members
  • Posts

    1
  • Joined

  • Last visited

vishnukumar's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. 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("Medical Billing"); courseModules.add("Medical Transcription"); marks.add("20"); marks.add("30"); Map model = new HashMap(); model.put("courseModules", courseModules); model.put(“marks”, marks); model.put("BaseDir", "reports"); model.put("JRDataSource", new JREmptyDataSource()); ModelAndView returnModelAndView = new ModelAndView("marksheet", model); 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 [Medical Billing, Medical Transcription] [20, 30] But, my requirement is, I have to print like Courses Mark Medica Billing 30 Medical Transcription 40 I don’t know how to iterate the elements in the list in jrxml. Please, guide me. Thanks Vishnu
×
×
  • Create New...