Re: creating CGI_Impersonator in Webmacro-Spring env

Hai-Chen Tu <[email protected]>
Newsgroups gmane.comp.java.webmacro.user
Message-ID <[email protected]>
Lane,
         I don't think I can check-out/check-in WebMacro CVS files.

         The change is to replace the line
                 sc_ = ((ServletBroker) wc.getBroker()).getServletContext();
         with

                 sc_ = request_.getSession().getServletContext();

         and add to the 2.0 release notes:
                 "WebMacro 2.0 requires Servlet 2.3 or newer."

Hai-Chen Tu

At 01:37 PM 10/1/2004, Lane Sharman wrote:
>Perfect.
>
>so do you know what to do with CGI_Impersonator now?
>
>-Lane
>
>Hai-Chen Tu wrote:
>
>>Lane,
>>
>>         I searched Servlet JavaDoc and found out that one can use
>>         request.getSession().getServletContext() to retrieve the servlet 
>> context.
>>         This getServletContext() method is available since Servlet 2.3.
>>
>>Hai-Chen Tu




-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.