• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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>
 
Creator of Enthuware JWS+ V6
Posts: 3411
320
Android Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 3411
320
Android Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic