I do not think that I understand your question fully but here is what I think,
As you have mentioned that if you remove the bean part of the code you do not get any exception , then I guess that home or bean in the below mentioned code might be null.Can you print the complete stack trace.
AccessBeanHome home=lookupbeanhome();
AccessRemote bean=home.create();
String name=bean.getName();
Why do not you do the stuff in the following manner for cleaner implementation.
Make a HTML to submit data to a servlet.The servlet would get the data and execute the remote method , mean invoking the bean with the input data and then set the reply from the invocation into a bean and set the bean in the request scope and forward it to result
jsp .The result jsp might use the bean set in request for displaying the values to the user.