Post Reply 
 
Thread Rating:
  • 1 Votes - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Use EJB from JSP
12-15-2010, 01:32 AM
Post: #1
Use EJB from JSP
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);
%>
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:



Send your comments, Suggestions or Queries regarding this site at info@tutorials4u.net

Copyright © 2010 Tutorials4u.net All Rights Reserved