I think that's up to you. I have a
servlet which uses:
<jsp:useBean id="usersession" type="com.xpresstrade.clientserver.ejb.usersession.UserSessionSF" scope="session" />
Later on, I access the bean with:
<input type="hidden" name="accountID" value="<%= usersession.getUserName()%>">
HTH