Jump to content
Changes to the Jaspersoft community edition download ×

my parameter is a new instance of an object


2005 IR Help

Recommended Posts

By: macoute3 - macoute3

my parameter is a new instance of an object

2005-12-09 01:42

in a template, I use a parameter with a custom type: com. .... .myengine.TemplateResolver.

 

As follow, the definition of TemplateResolver:

 

public interface TemplateResolver {

public InputStream get(String compiledTemplateName) throws Exception;

}

 

And the implementation:

 

public class ClientTemplateResolver implements TemplateResolver {

 

public InputStream get(String compiledTemplateName) throws Exception {

nputStream inputStream = new FileInputStream("/workspace/reports/" + compiledTemplateName + ".jasper");

return inputStream;

}

}

 

If, I put the default value to: new com. .... .myengine.ClientTemplateResolver(), this works fine,

 

but if I prompt an other value (with no default value), the TemplateResolver seems to be not instanciate.

 

why?

Thanks for your response.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...