Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB and JSP

 
Donna Bachner
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm new to EJB's. I'm making a simple hello world EJB I have the eJb written and need to call it with the JSP. I need the following to call it the id, scope, class, and type. Where do I name these terms and what is the syntax to name them.
 
karthikeyan Chockalingam
Ranch Hand
Posts: 259
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may have to read the following thread

http://forum.java.sun.com/thread.jspa?threadID=514536&messageID=2449489

and google using the following keywords
call ejb from jsp
[ October 09, 2006: Message edited by: karthi keyan ]
 
Donna Bachner
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is what I found from google"ing" and I keep getting a couple errors mess is the package name which netbeans does not like. It says it's an illegal package call on the bean
<body>
<jsp:useBean id="message" scope="session"class="SimpleBeans" />
<jsp:getProperty name="message" property="mess.Simplebean"/>
</body>
All I want to do is see a working hello world so I know I can do it.
 
Donna Bachner
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ps. I figured out what all the terms mean.
 
Donna Bachner
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got it working
 
karthikeyan Chockalingam
Ranch Hand
Posts: 259
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Congratulations.. :roll:

But
relates to Java Beans and not EJB..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic