Skip to Content
avatar image
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 comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Jun 29, 2004 at 05:48 PM

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

    -Shakeel

    Add 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

  • avatar image
    Former Member
    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 comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    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 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