Skip to Content

Session Expire / Object Destroy

Hi All

I am wondering what is the best way to do this. Let's say I have JSP Dynpage with a HTMLB Form containing an search text field. Users does the search and results are displayed in a htmlb table on it using the hbj tags. I have stored the model for this table in the IComponentProfile. Lets say user Amy visits this component via the portal. See enters some search text and sees some results in the htmlb table. Then the user closes the browser and visits the same component after an hour. Fun part is users sees the same table again.

Is there way to get rid of this behaviour.

Thanks and Regards

Pankaj

Add comment
10|10000 characters needed characters exceeded

1 Answer

  • Posted on Jan 27, 2004 at 11:27 AM

    As always this is to put this post in the top.

    Pankaj

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Pankaj Kumar

      ok. I got you right. what sort of object do you store in the profile? A TableViewModel?

      I had a the opposite problem with beans which was stored in the profile...

      doInitialization()....

      Object o = getPortalProfile().getValue("goodsBookingInitBean");

      if (o == null || !(o instanceof GoodsBookingInitBean))

      {

      goodsBookingInitBean = new GoodsBookingInitBean();

      getPortalProfile().putValue("goodsBookingInitBean", goodsBookingInitBean);

      }

      else

      {

      goodsBookingInitBean = (GoodsBookingInitBean) o;

      }

      so in your case just create a new Instance of your object everytime the iview is started and put it into the profile... regards, jens