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

Portal request object.

Hi:

I wanna use IPortalComponentRequest class to get values from portal but I cann't find the required libraries for the same.

Any ideas?

Thanks,

PKK.

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 29, 2004 at 05:48 PM

    AFAIK, it is not possible to get a handle to the request object in webdynpro.

    -Shakeel

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      IPortalComponentRequest is available at design time with NDS. But you have to manually add this jar to the project. The path is <Drive>:\Program Files\SAP\JDT\eclipse\plugins\com.sap.ep.applicationDevelopment\prtapi.jar.

      Runtime doesn't have these files. I added it to the J2EE lib using the deploy tool. But it seems the runtime is not able to locate the jar. Anyway you could give a try.

      Option 2: Run the WD on a Portal 6.0 SP3 system which has the WAS 640 engine..

      Thanks and Regards,

      Sam Mathew

  • author's profile photo Former Member
    Former Member
    Posted on Jun 29, 2004 at 10:27 PM

    Thanks Sam.

    I have one more small problem.I was able to compile my classes and all but when I deploy my application on the portal System I get Class Defention not found for com.sapportals.portal.prt.component.IPortalComponentRequest

    How do I add References in my project?

    Thanks,

    Praveen.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 01, 2004 at 03:53 PM

    Sam:

    I have created a DC of type Web Dynpro and imported the

    file structure into that project.

    Compiled(Build) and Deployed.

    In my project2 (Web Dynpro project) I refer above DC project in the library reference.

    Having done this I compiled my project2 and deployed and I still get NoClassDefFoundError.

    Any suggestions?

    Thanks

    Praveen.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Praveen,

      Let me warn you that this might not be a right solution.

      But I will take you till where I reached..

      To refer a DC in another DC, it is not enough to make a library reference..

      Please find the below help path in the NW'04 documentation..

      Web Dynpro->The Development Process->Setting Up a Web Dynpro Project->Developing in the Team

      After creating a DC and defining a proper usage for it in the second DC project deploy them in order..

      By this you won't get the NoClassDefFoundError. But you will get a "ClassCastException"..

      So As I suggested in my previous mail, it is better to use "HttpServletRequest" type casting instead of "IPortalComponentRequest"

      Or else give a try to run the app in EP6.0 SP3...

      Thanks and Regards,

      Sam Mathew

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.