It's not a secret anymore!*
The moose likes Servlets and the fly likes bean - servlet communication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "bean - servlet communication" Watch "bean - servlet communication" New topic
Author

bean - servlet communication

manik kant
Greenhorn

Joined: Mar 24, 2008
Posts: 11
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

Joined: Mar 22, 2000
Posts: 12756
    
    5
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

Joined: Jan 07, 1999
Posts: 6920
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.

Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: bean - servlet communication
 
Similar Threads
Question regarding EL and standard action from HF Servlets and JSP
where is the Busness logic in Model 2 pattern
Problem in inserting record to Oracle Database.
Servlets
JSP/Servlets