Skip to Content
0
Former Member
Oct 17, 2005 at 05:12 PM

JSP Instantiate Session Bean After Load

60 Views

Hi Everyone,

I'm having a problem using a session bean in my jsp.

Sometimes, after I upload a par file, the first time I run the jsp, the jsp instantiates the session bean instead of using the one stored in the session.

I know the bean was correctly instantiated in my DynPage code because I wrote some of its information back to the jsp using IPortalComponentResponse object and I can see those.

I'm wondering if I need to change a property on my portalapp.xml file or on the portal itself.

Here is the component definition in my portalapp.xml:

<component name="NewRequest">

<component-config>

<property name="ClassName" value="com.nexeninc.tots.user.newrequest.NewRequest"/>

<property name="ComponentType" value="none"/>

<property name="JSP" value="pagelet/NewRequest.jsp"/>

</component-config>

<component-profile>

<property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>

</component-profile>

</component>

One more thing, the problem is not recurring which is giving me grief to identify why and when exactly it is happening.