ServletContext needed
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > WebSphere > WebSphere Portal Server > ServletContext needed




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    ServletContext needed  
bephinney


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-06-04 10:55 PM

I need to obtain a reference to the ServletContext object.

I am extending LogoutUserAuth and need a reference to the ServletContext in 
the LogoutUserAuth.onUserSessionTimeout(HttpSession aSession) method.

The catch is that I am developing on WPS 4.2.1 which runs on J2EE 1.2 which 
does not have a HttpSession.getServletContext() method.

What are my options?





[ Post a follow-up to this message ]



    Re: ServletContext needed  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-08-04 10:54 PM

This is NOT supported code but it does give you access to the servletcontext
.

import com.ibm.wps.engine.RunData;
RunData run= RunData.from(request);
run.getContext();






[ Post a follow-up to this message ]



    Re: ServletContext needed  
bephinney


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-09-04 10:58 PM

Thanks for the tip.

The problem, however, is that there is no request being made at my point of 
concern.  The session has timed-out and the server is doing some clean-up.

The only object I am passed is an HttpSession.

Any other possibilities?

> This is NOT supported code but it does give you
> access to the servletcontext.
>
> import com.ibm.wps.engine.RunData;
> RunData run= RunData.from(request);
> run.getContext();







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:57 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register