Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EL functions and singleton session bean

 
Jelo Nehuptra
Ranch Hand
Posts: 36
Java jQuery Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64613
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just because a tutorial doesn't cover something doesn't mean it doesn't exist or that you can't use it.
 
Jelo Nehuptra
Ranch Hand
Posts: 36
Java jQuery Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64613
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved to the EJB forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic