Skip to Content
author's profile photo Former Member
Former Member

Create a bean to be share with different component.

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


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 07, 2004 at 09:19 AM


    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();




    Try it


    Message was edited by: Walter Mattes

    You can also have a look at


    which explains the same issue

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.