Skip to Content
author's profile photo Former Member
Former Member

What is the difference between IPortalComponentContext and ServletContext ?

1) What is the difference between IPortalComponentContext and ServletContext or PageContext?

2) Both IPortalComponentContext and ServletContext are Same . If Both are Same Both Can be interchangeably Used?

3) If Both IPortalComponentContext and ServletContext are not same ,what is the specific functionality of each. I mean when is the IPortalComponentContext used and when is ServletContext is used?

4) can any please explain the difference and functionlity of each code snippet?

Thanks and Regards

Prasad.Y

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Feb 21, 2005 at 03:04 PM

    Hi Prasad,

    what both contexts have in common is, that the context gives access to some resources the container provides.

    Nothing else.

    The servlet context is rather an application context of any java webapp and exists once per vm, a PortalComponentContext exists for every component and represents a view of the context in which the runtime runs the component.

    To answer your questions shortly:

    1) http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/ServletContext.html

    https://media.sdn.sap.com/javadocs/preNW04/SP2/60_sp2_javadocs/runtime/com/sapportals/portal/prt/component/IPortalComponentContext.html

    2) NO!

    3) see 1)

    4) ?

    😉

    Regards, Karsten

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.