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

bean - servlet communication

 
manik kant
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to call a bean class or jar file from a servlet.(both application bean & GUI bean) as i know the procedure with JSP ie.,usebean tag.I dont find coding for that in books.Does it play a major role in real time.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure what your problem is - you create an object of a Bean class just like you create any object. The JSP tag is just shorthand that the JSP compiler turns into code that creates a new object using your no-args constructor.
Bill

------------------
author of:
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please note that The Java Ranch has a naming policy, described here and "manik" is not a valid name.
Please choose one which meets the requirements.
Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic