Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP as client to EJB3  RSS feed

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi

I want to do a JNDI LookUp operation from MY JSP to get access to a Remote Bean .

But i read this line from a site which says that this is possible from servlets OR JSF but not from JSP


"You cannot inject anything into JSP pages. You can inject EJB and/or resources into Servlet classes, Servlet listener classes, JSF beans."


Is this true .
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36406
454
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ravi,
I've read that you can inject things into a JSP. However, it is a horrible practice and I didn't try it. Any code in a JSP is bad. Datasources and EJBs are even worse.
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you , i will call from the servlets itself
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!