Hi there,

I'm writing test cases using Cactus which would be running in Weblogic 
Portal 7.0.
Now, to test a piece of code, which invokes Weblogic's tag, doesn't work 
and what I found that in Weblogic's JSP tag there is statement:

 public static String getWebAppName(ServletContext theContext)
            {
/* 213*/        if(theContext instanceof WebAppServletContext)
/* 215*/            return ((WebAppServletContext)theContext).getName();
/* 217*/        else
/* 217*/            throw new IllegalStateException("Unable to extract 
name from ServletContext.");
            }


And Weblogic's tag passes servlet context internally using 
pageContext.getServletContext(). 

Now, most of the wrapper classes's has got "getOriginal...." except for 
Cactu's PageContextWrapper.

So, I think there is a need to add this method "getOriginalPageContext()" 
to PageContextWrapper.


Regards,

Ankur

*********************************************************************************
Important Note
This email (including any attachments) contains information which is 
confidential and may be subject to legal privilege.  If you are not 
the intended recipient you must not use, distribute or copy this 
email.  If you have received this email in error please notify the 
sender immediately and delete this email. Any views expressed in this 
email are not necessarily the views of AXA.   Thank you.
*********************************************************************************

Reply via email to