WebSphere HATS - Sharing same bean in Hats transformation and HostPub jsp

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere HATS > June 2005 > Sharing same bean in Hats transformation and HostPub jsp





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Sharing same bean in Hats transformation and HostPub jsp
Heikki Ruohonen

2005-06-05, 5:45 pm

Our application is started in HostPublish mode and after a while the control
is moved to HATS transformation mode. Both share the same connection. In
HostPublish jsp I have initialised a session scope bean (<jsp:useBean
id="COS" class="contant.online.ContantService" scope="session" >.) by which
we internationalize our pages.
Is it possible to use this same bean in my HATS transformation and not to
initialise it again?

Thanks
-Heikki


Heikki Ruohonen

2005-06-05, 5:45 pm

Found out that the sharing works ok with:
HttpSession sess = blInfo.getRequest().getSession(false);

ContantService COS = (ContantService)sess.getAttribute("COS");

in HATS mode (the code snippet above is from one of my business logic
javas).

-Heikki



"Heikki Ruohonen" <heikki.ruohonen@contant.com> wrote in message
news:d098gk$6hq2$1@news.boulder.ibm.com...

> Our application is started in HostPublish mode and after a while the

control
> is moved to HATS transformation mode. Both share the same connection. In
> HostPublish jsp I have initialised a session scope bean (<jsp:useBean
> id="COS" class="contant.online.ContantService" scope="session" >.) by

which
> we internationalize our pages.
> Is it possible to use this same bean in my HATS transformation and not to
> initialise it again?
>
> Thanks
> -Heikki
>
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com