Tutorials4u.net Forum

Full Version: Use EJB from JSP
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
EJB with constructor with no parameter

<jsp:useBean id="myBean" scope="session" class="com.company.MyBean"/>

EJB with constructor with parameters

<%
com.company.MyBean bean=new com.company.MyBean(1, 2, 3, 4);
session.putAttribute("myBean", bean);
%>
Reference URL's