I am working in struts for last two years. Now i started with JSF. We are making a managed-bean and make the value available in the view(JSP). and when we click the button (an action) we call the method in the managed-bean to get the values from the Form( since i am new i am here only). Is there any other way to call the method eg. by calling a javascript function then submit the Form as in Struts. And how to get the session for the same, since the session will be avilable from the request like this

HttpSession session = request.getSession(true);

How to get the request (HttpServletRequest)
How to get this session.
Is there any other way to call the action by as stated earlier (or) can we write a seperate class which will capable of handling all the request as in struts.

Thanks & Regards,
Felix T