aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes EL functions and singleton session bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EL functions and singleton session bean" Watch "EL functions and singleton session bean" New topic
Author

EL functions and singleton session bean

Jelo Nehuptra
Ranch Hand

Joined: Oct 08, 2011
Posts: 36

what happened to EL functions in EE6? Why doesn't the Java EE 6 tutorial have EL functions while the EE5 has?

I'm using a Singleton Session Bean to hold data for SchoolYear, how can I invoke a method of the SSB to show the current School Year in a JSP? or the current Date without scriptlets?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61426
    
  67

Just because a tutorial doesn't cover something doesn't mean it doesn't exist or that you can't use it.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Jelo Nehuptra
Ranch Hand

Joined: Oct 08, 2011
Posts: 36

ok, so how can i call a singleton session bean on a jsp?

i want to use singleton session beans instead of EL functions. they have the same results right? if i'm correct, singleton session beans were introduced due to the lack of like a 'static' method on any other session beans.

now i have a class that returns the current school year for use with all my jsp, it's working if i use functions but i want to use a singleton session bean to have a instance variable that will be shared for all of my components.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61426
    
  67

Moved to the EJB forum.
 
jQuery in Action, 2nd edition
 
subject: EL functions and singleton session bean