Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem in tld while defining function which has to be used by EL

 
Mayur Shinde
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am declaring one function in tld which i have to use through el, now problem is the class in which i am defining is suppose GenerateRandom.java and it is in default package, so what i have to declare in <function-class> tag, because generally we here specify the package name like <function-class>com.info.GenerateRandom</function-class>, i have tried declaring only class name like
<function-class>GenerateRandom</function-class>
 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Pie
Posts: 2536
113
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mayur,

I am declaring one function in tld which i have to use through el, now problem is the class in which i am defining is suppose GenerateRandom.java and it is in default package,

This cannot be done, put you class in a package

Regards,
Frits
 
Mayur Shinde
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Frits Walraven wrote:Hi Mayur,

I am declaring one function in tld which i have to use through el, now problem is the class in which i am defining is suppose GenerateRandom.java and it is in default package,

This cannot be done, put you class in a package

Regards,
Frits


It is possible that my class is in default package.
 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Pie
Posts: 2536
113
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is possible that my class is in default package.

Off course it is possible, but if you read the java specs, then the default package is only meant for testing purposes. As soon as application servers are involved: don't use the default package: it won't work, and if it by accident works it won't be portable.

Regards,
Frits
 
Mayur Shinde
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Frits Walraven wrote:
It is possible that my class is in default package.

Off course it is possible, but if you read the java specs, then the default package is only meant for testing purposes. As soon as application servers are involved: don't use the default package: it won't

Thanks for above information
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic