Jsp: myBean is in form ; when I submit servlet will b called. Is there any method to get myBean object. getParameter() method do not return object; it returns string; Any clue? Another approach is using hidden data field in JSP ; and use getParameter method. i tried using getAttribute method ............but is not working............... shows java.lang.NullPointerException error.............