aspose file tools*
The moose likes Servlets and the fly likes JSP  to EJB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "JSP  to EJB" Watch "JSP  to EJB" New topic
Author

JSP to EJB

PRAN
Greenhorn

Joined: Feb 19, 2001
Posts: 3
Hi,
can i call a session bean methods directly from the JSP if so how? please help me .
thanks,
Pran a
Tony Alicea
Desperado
Sheriff

Joined: Jan 30, 2000
Posts: 3222
    
    5
Sure.
Have the controlling servlet instantiate the bean through the normal way of getting the home interface of the bean and then getting an instance of the bean through the create() method. Then the servlet puts the bean into the request or session objects and forwards it to the JSP.


Tony Alicea
Senior Java Web Application Developer, SCPJ2, SCWCD
Tony Alicea
Desperado
Sheriff

Joined: Jan 30, 2000
Posts: 3222
    
    5
PRAN: Please read and comply by the username policy of JavaRanch. In particular single name usernames are not permitted. Thanks.
The policy, which must be adhered to, is at
http://www.javaranch.com/ubb/Forum10/HTML/000180.html
Thanks again.
---
Sheriff Tony
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP to EJB
 
Similar Threads
what is defalut value of Custom tag body-content
WA #1.....word association
pop up page
creating a pop up calendar within a form
Struts: No getter method for property name problem