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]

# 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.