This week's book giveaways are in the AI and JavaScript forums.
We're giving away four copies each of GANs in Action and WebAssembly in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of GANs in ActionE this week in the AI forum
or WebAssembly in Action in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

how to use code from java class in xml file?

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
greetings all
i have java class and xml file for generating report
and i want when user selects 2 from the combobox and button is pressed
the query string in the xml file is changed to 'week5'to'week8'
so i tried to add the xml file and the java class to the same package first,right? or there's another way to use code from java class in xml file?
but it doesn't work i used
<package>
<name>first</name>
.
.
.
</package>

here's the xml file



and here's the java class:

 
Ranch Hand
Posts: 1855
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by mahmoud saleh:
... but it doesn't work i used



You don't need that <package> XML thing around your Jasper XML file. Take the <package><name> off your Jasper XML file. Your Jasper XML contains your report and should look like:



Then make sure that your Jasper XML file (report.xml) really is in:



For more on Jasper I can recommend

 
Are you here to take over the surface world? Because this tiny ad will stop you!
Sauce Labs - World's Largest Continuous Testing Cloud for Websites and Mobile Apps
https://coderanch.com/t/722574/Sauce-Labs-World-Largest-Continuous
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!