I am having issues with passing a Java Bean to a JSP for a Portlet for Liferay.
I have attached the JSP, the Java class that is supposed to represent the controller and my sad attempt at creating a bean to transfer the data I need.
Here is what I attempted to do:
To have as little Java Code in the JSP as possible I try to get the values I want (all the communities and the selected communitys' users, which is commented out) and put them in the FuksMsvTransferObject, which is then passed to the JSP with request.setAttribute("FuksMsvTransferBean", fmto)
In the JSP I pull the Object with
<jsp:useBean id="transferObjekt" scope="request" class="org.fuks.itwm.msv.FuksMsvTransferBean" />
The problem is that I get a NullPointerException later on in the JSP where I try to get the stored Object from within the Bean.
What am I doing wrong?