How to send parameters from jsp to session bean ! !

Hi Friends,

I am new in EJB , In my application i have one form which takes userName n password and send it to session bean for validation.

But i dont know how to pass the parameters from jsp to Bean.

(Here iam calling servlet which takes the parameters from jsp but dont know further process means how to send parameters to bean)

Please send the solution as early as possible .

Best Regards

Karan

[441 byte] By [karan88a] at [2007-11-27 5:46:27]
# 1
I suggest you start reading some documentation instead of asking lame questions and demanding answers quick.
CathodioNa at 2007-7-12 15:29:18 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2

1. In the servlet, get a reference to the sessionbean.

2. Write a method in the session bean that passes params

The not too difficult task of getting a reference to the session bean is what you have to find in the documentation. It looks somethng like this using annotations:

@EJB(mappedName="your name in web.xml(ejb-local-ref)")

YourLocalOrRemoteInterfacetoTheSessionBean yourRemoteOrLocal;

After doing this you have access to the methods in your session bean.

tobiassen666a at 2007-7-12 15:29:19 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...