Hi!
I'm new to ejb. Actually I've created one ejb and I added reference to a web application which will call the session bean simply. How to call the session bean from the jsp file?
Hi!
I'm new to ejb. Actually I've created one ejb and I added reference to a web application which will call the session bean simply. How to call the session bean from the jsp file?
1) the first way will be to create a direct object
use import tag to import ur class
< % @ page import = packageName.Classname %>
<%
@EJB
Classname object = new Classname();
%>
and then access methods using normal jsp
<%=object.callmethod()%>
2) the other way will be to use standard actions
<jsp:useBean id="beanId' class="packagename.ClassName" />
<jsp:getStudentInfo name="beanId" property="name"/>