Hi all,
I am now trying to create a bean which will store and share the data which will be used by all custom iView under the same IE session.
How should I code my bean? What type of project should I create for? Service or component? Besides, how can I reference it from different component? (I don't want to place the code of bean everywhere)
Thanks a lot
Sam
Hello,
You should place Your Bean in the HttpSession.
There every iView can get the Bean with the according methodes.
You can get the HttpSession from the componentSession:
session = componentSession.getHttpSession();
But you have to take care in JSP the normal Taglib <jsp:..> won't work. You have to use
<%
...
session = componentSession.getHttpSession();
...
%>
instead.
Try it
Walter
Message was edited by: Walter Mattes
You can also have a look at
which explains the same issue
Add a comment