Difference between Abstract portal Component and JSPDyn page.

Hi Experts,
What is the difference between Abstract portal Component and JSPDyn page.
Thanks,
Jay.

Hi,
The PDK provides two methods for creating a portal component:
Abstract Portal Component
The Abstract Portal Component class offers a lean method for writing HTML commands to the Web client as well as for basic event handling. It is an implementation of the IPortalComponent, which is the central abstraction of the Portal Component API.
DynPage
The Page Processor Component, which extends the Abstract Portal Component, returns a DynPage. It provides more sophisticated event handling. Controls that produce events (such as buttons and checkboxes) have an event attribute that contains the name of the event handling method. This event handling method is invoked by the DynPage when it occurs.
The JSPDynPage is an implementation of the DynPage and allows the use of the DynPage in combination with JSP (Java Server Pages).
The PDK documentation and examples focus on the DynPage. Easier event handling and the separatation of content development (JSP) from application development (Java) make the DynPage a better choice for components with interaction and changing content.
For more details, Refer thes thread,
https://fortress.wa.gov/dop/portal/irj/portalapps/com.sap.portal.pdk.basic.portalcomponentimplementation/docs/jspdynpage.html
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0b3e9d5-b2af-2a10-20ba-9f6ce6b1a27f
Hop it helps..
GS
Edited by: Sathishkumar GS on Apr 14, 2008 2:07 PM

Similar Messages

  • Difference between abstract portal component ,dynpages and jsp dynpage

    Hi All,
    I am new to the SAP world.Can you help me out in finding the difference between abstract portal component ,dynpages and jsp dynpage in Portal development.Please send me  any information.

    Hi,
    Welcome to SDN Community
    This blog will brief you the differences between them,
    Java development methodologies (Part II)
    Regards
    Srinivasan T

  • Abstract portal component and JSP question

    Can we use htmlb components in abstractportal components.
    I am using isolatedhtmlcontainer in abstractportal component and it is not compiling. It works fine with Dynpage component
    Also one more question can we just write a JSP to get the userid of the portal. I tried typecasting request object to IPortalComponentRequest , but iam not able to get the userid . Can anyone suggest anything . I want get the userid from the jsp and pass this userid to asp as query string
    Thanks
    LAK

    Yes you can create a JSPDynPage and define the component type as NativeJSP in portalapp.xml for e.g.
      <i>      <property name="ComponentType" value="jspnative"/>
            <property name="JSP" value="pagelet/YourJSP.jsp"/></i>
    The explicit object for IPortalComponentRequest is componentRequest in JSP. The other way to get componentRequest is
    IPortalComponentRequest       currentRequest       = (IPortalComponentRequest) pageContext.getAttribute(javax.servlet.jsp.PageContext.REQUEST );
    to get the user further just call currentRequest.getUser()

  • Abstract Portal Component and javascript

    Hi
    I'd written a Portal Abstract Component class in which i'm getting some values from a file and displaying the content as HTML in response.write()
    I'm getting a xml and with xslt i'm converting it into HTML. so in my html, there are some HREF links, on clicking it opens a new window and displays the data.
    Now my requirement is to call a method on clicking the link and also to refresh the page simultaneously.
    So when someone clicks on the link, through javascript i'm opening a new window.
    What i want is that on clicking the link:
    1) i want to call a method in the same class in order to update the number of clicks
    2) i want to refresh the page.
    Could you please guide me how to go for this.
    Thanks and Regards
    Puneet

    Question opened for long, so closing it

  • Abstract Portal Component VS Dynpage

    Can any one explain the differences between Abstract portal component and JSP DYN PAGE?
    When to use where ?
    How can we provide communication between iViews with in the same component / different components.
    Useful answers will be rewarded with points.
    Thanks

    Mohan,
    Abstract portal component as it says its an abstract component .In portal applications we have certain requirements which include only some business logic to be implemented ,for such cases u write the function in abstractportalcomponent and use this as a single entity.It generally not used for building applications with UIs..
    So for a portalapplication wher u need to include UI,controller,and databased/Backend connectivity .JspDynpage suits here.It is the framewrk provided which has JSP view,java controller,and beans model..
    For instance if u have developed a user login form and saving it to database.
    U develop it using JSPdynpage.
    But her if u have an enhancement of including the page to be printed.
    U can create a abstractportalcomponent and use it in earlier Jspdynpage.
    So advatage is modular specific business process can done and integrated with an application..
    Future advancements is easy.
    for performance info check this
    <a href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3fbea790-0201-0010-6481-8370ebc3c17d">pdf</a>
    Thanks,
    Swathi

  • Difference between portal component and portal service?

    Hi I am kishore...
             I worked on portal components but not on portal services... Would anybody tell the difference between the portal components and portal services...? What is a portal service..?
               How we know which one to choose in the scenario.?
        Thanks in adavance

    Hi kishore,
    A portal component is custom Java code that is executed according to user requests, and generates HTML output for display on the client.
    Portal components:
    Page builder, which assembles pages
    Admin tools, such as logger, which is comprised of user interface messages.
    Pages
    Technically, the page is also an iView. A page includes iViews or pages (nested) and Layout components
    iViews
    There are two different isolation levels (iView types)
    Embedded: iViews’ html is embedded as part of page html. iViews are called synchronically on the server, and retrieved in one response, to  the client (this is the page response)..  Each iView reloading reloads all iViews on page.
    URL (Isolated): iViews are fetched by an IFRAME element in an “own” request. One response for the page followed by additional request-response for each iView (depending on browser 2-4 requests simultaneously).
    Portal Services:
    A portal service is a component that offers a globally accessible function in the portal. 
    A portal service act as the middleware, that is, interfaces that are enabled to exchange procedures and data. They offer functionality to portal components, and other services.
    There are two groups of portal services:
    Portal services (part of the PRT)     
    Caching                     
    Notification
    iView service
    Application Repository
    System Landscape
    Role, pages, worksets
    Web Services
    Unification service
    Portal services (external to the PRT)     
    Client Eventing                 
    URL generator
    Logger
    JCO client service
    Hope this helps.
    Regards
    Atul Shrivastava

  • Stop/Kill a Abstract portal component

    Hi All,
    I am working on EP 7.0 version.
    I have created a Abstract Portal component and uploaded the par file using Portal Archive tool.
    I ran the component by executing the url as below:
    http://<hostname>:<Port no>/irj/servlet/prt/portal/prtroot/Parfilename.ComponentName.
    The componet is having a bug and it is running in an infinite loop.
    Please let me know how to stop/kill this component as its logging some statements infinitely.
    Thanks in Advance,
    -Pavan

    Hi,
    You'll need to restart the server.
    Regards,
    Alex

  • Writing HTML tags in Abstract Portal Component?

    Hi,
    I am trying to write some HTML tags in an Abstract Portal Component and I am facing problem to write  "/"
    Pls. let me know if there is any escape character or any other way of printing a "/" in a tag like as follows....
    response.write("</td>")
    <b>New Addition:</b>
      SORRY ... WE CAN Write </td> without any problem ..
      Due to some error on the top of the program this is wrongly shown...
    Thanks 
    Mrutyunjay
    Thanks & Regards
    Mrutyunjay

    Hi Nari,
    Follow the below steps:
    1. Store your properties files (test.properties, test_en.properties, test_xx.properties where xx is the locale ) in the folder PORTAL-INF ->Private ->classes
    2. In portalapp.xml for component-config, add this
    <property name="ResourceBundleName" value="test"/>
    3. In your abstract portal component you can use the below code to fetch the value for the key "SERVER_NAME".
        public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
             ResourceBundle resourceBundle = request.getResourceBundle();
             if(resourceBundle!=null)
                  response.write(resourceBundle.getString("SERVER_NAME"));
             else
                  response.write("Error");
    Let me know if you still face any issue.
    Thanks
    Prashant

  • Redirecting to external website from abstract portal component?

    Hi,
    I have developed an abstract portal component and trying to be redirected to an external website ex : www.google.com
    here is the code...
    public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
    HttpServletRequest req = request.getServletRequest();
    String queryString = req.getQueryString();
    String redirectURL = queryString.substring(queryString.indexOf("=")+1);
    HttpServletResponse resp = request.getServletResponse(true);
    resp.sendRedirect(redirectURL);
    OR
    RequestDispatcher rd = req.getRequestDispatcher("www.google.com");
    rd.forward(req, resp);
    But couldn't able to redirect in either ways ..
    exception was ... iView not found: www.google.com.
    Any help?
    Thanks
    MMK

    Hi Mohan,
    When you do a redirect you need to provide a URL. From javadocs
    Sends a temporary redirect response to the client using the specified redirect location URL. This method can accept relative URLs; the servlet container will convert the relative URL to an absolute URL before sending the response to the client.
    Thus when you provide just "www.google.com" the converted complete URL will be something like http://portalserver/irj....www.google.com whcih of course does not exist as a portal component. Thus you get the error iview not found.
    Hence you need to give a full URL and not a relative URL.
    Akhilesh

  • Accessing portal service from abstract portal component

    Hi
    I have created a portal service where it contains getdata() and putdata(String) methods.
    I have created a abstract portal component and trying to access the portal service from this component.
    In portalapp.xml file of the portal component i have created the sharing reference and i have given the service name.
    When i run the component it says service not found.
    Please let me know if i have missed some things
    Thanks and Regards
    NagaKishore

    Hi Prakash
    Sorry for the latereply.
    find below the code for the interface
    package com.sap.global;
    import com.sapportals.portal.prt.service.IService;
    public interface IGlobalContext extends IService
        public static final String KEY = "IGlobalContext.GlobalContext";
        public void putData(String strUserID,String strSessionID);
        public String getData();
    portalapp.xml file of the portal service.
    <application>
      <application-config/>
      <components/>
      <services>
        <service name="GlobalContext">
          <service-config>
            <property name="className" value="com.sap.global.GlobalContext"/>
            <property name="startup" value="true"/>
          </service-config>
          <service-profile>
            <property name="Test" value="true"/>
          </service-profile>
        </service>
      </services>
    </application>
    I am doing the following steps to access the portal service in the abstract portal component.
    1. Add the portal service to the java build path of the abstract portal component.
    2. do content method has the following code.
    String userid ="",sessionid="";
              response.write("Welcome");
              try
              IUserContext uc= request.getUser();
              userid = uc.getLogonUid();
              sessionid = request.getServletRequest().getSession().toString();
              response.write("Iview "+userid);
              IGlobalContext uid = (IGlobalContext)PortalRuntime.getRuntimeResources().getService(IGlobalContext.KEY);
              uid.putData(userid,sessionid);
              response.write(" Response from Service " + uid.getData());
             }catch (Exception e)
                  response.write(e.toString());
    3. portalapp.xml of abstract portal component
    <application>
      <application-config>
        <property name="SharingReference" value="GlobalContext"/>
      </application-config>
      <components>
        <component name="LandingPageComponent">
          <component-config>
            <property name="ClassName" value="com.satyam.landing.LandingPage"/>
          </component-config>
          <component-profile/>
        </component>
      </components>
      <services/>
    </application>
    I am getting the following error.
    Portal Runtime Error
    An exception occurred while processing a request for :
    iView : N/A
    Component Name : N/A
    Could not find portal application GlobalContext.
    Exception id: 11:53_08/04/05_0095_1641450
    See the details for the exception ID in the log file
    Thanks in advance
    Regards
    NagaKishore

  • Calling a JSP  from abstract portal component

    hi,
    I have included a JSP in a abstract portal component and on click of submit in 1st JSP i have to show an another JSP.How can i do this???
    Regards
    Sushanth

    When you say submit do you mean HTMLB submit or a normal HTML form submit?  If it's the latter, you just need an action on your form...
    <form action="jspfile2.jsp">

  • Page Imports in Abstract Portal Component

    Hi,
    I have created an abstract portal component where I have called a JSP using IResource.
    The JSP is called and displayed.
    <%@ page import = "java.util.*;" %>
    <%@ page import = "com.sapportals.portal.prt.component.*;" %>
    <html>
    <body>
    hello
    </body>
    </html>
    In my JSP the moment I add the second import i.e. prt.runtime, it throws an error when I run the application:
    Error when rendering jsp.
    Am I missing out something?

    Hi Prem,
    Add that particular jar file in the lib folder of your application and also add it to the build path of your project properties.
    <b>Project -> Properties -> Java Build Path -> Libraries</b>
    Add to this build path as well.
    I hope this helps you.!!
    Regards
    Pravesh
    PS: Please consider rewarding points if solved and helpful.

  • What is difference between abstraction and encapsulation ?

    Hi,
    I am trying to figure out the difference between abstraction and encapsulation but confused.
    Both are used for data hiding then what is the exact difference ?
    Thanks.

    Tushar-Patel wrote:
    I am trying to figure out the difference between abstraction and encapsulation but confused.
    Both are used for data hiding then what is the exact difference ?This is the picture I have:
    When you encapsulate something you get an inside and an outside. The outside is the abstraction. It describes how the encapsulated entity behaves viewed from the outside. This is also called the type. Hidden inside is the implementation. It holds detail information about how the type's behaviour is accomplished.
    It's a very simplified picture but I think it's quite accurate and it works for me.

  • Difference between abstract interface and normal interface

    Hello Friends,
    What is the Difference between abstract interface and normal interface?....

    What is the Difference between abstract interface and
    normal interface?....The difference is that you didn't follow convention in the first case. All interfaces are implicitly abstract so you don't have to declare them as such.

  • What is the difference between CE Portal and normal Portal

    Can someone tell me the difference between CE Portal & Normal Portal. I mean, I keep hearing that SAP EP 7.2 is CE portal whereas SAP EP 7.3 is not CE portal.
    Can I assume that CE (Composite environment) is a failure model so SAP switched back to Non-CE environment ? Your inputs please.

    Hello,
    SAP NetWeaver Composition Environment 7.1 and 7.2 have been introduced as a lean "side-car" approach to complement the SAP NetWeaver standard release. Main reason was to provide composition tools and services based on a enhanced Java technology stack (back the time).
    The official successor of SAP NetWeaver 7.0 (or any of the enhancements packages) has been SAP NetWeaver 7.3 (where we brougth various tools together back into one SAP NetWeaver codeline.) Nowadays we recommend the latest release: SAP NetWeaver 7.4 including the Enterprise Portal 7.4.
    Customers & Partners who did not want to install the full SAP NetWeaver Java stack had the chance to only go with the Composition Environment - that contained selected portal core services. These are mainly used for application integration / launching scenarios and not supportin full enterprise portal (intranet / extranet) scenarios - that's why there is no KM included.
    Hope this helps to get a better understanding.
    Regards,
    Thomas

Maybe you are looking for

  • Change Data Capture: Experiencing Delay

    Hello Community, I am experiencing an anomaly with Change Data Capture that is turning up empty with online searches.  Essentially, I am attempting to change data, and then immediately call the fn_cdc_get_all_changes_* function to get the changes I j

  • Wordpress html code in dreamweaver

    Does anyone know if I can use my wordpressblog (html) Bruidsfotografie www.totaalfotografie.nl in Dreamweaver, so I can change it easy-er? Some kind of templates are difficult to change. Can I copy my html code en use it in Dreamweaver? Thank you. Ki

  • A good Primer on srvctl - Getting things to autostart?

    Hello all, Ok, I've finally gotten 11gR2 clusterware installed. I have ASM installed. I've created some RAC database instances. How...wondering how to get all things to autostart on boot...and how to auto shutdown on a clean shutdown of servers. I kn

  • Why does a LaunchDaemon stop when user logs out?

    Hi, We have an application that uses an older version of Jetty that I am trying to configure as a LaunchDaemon on OS X 10.7.5 I've created a org.mortbay.jetty.plist and placed this in the /Library/LaunchDaemons, set permission 644 and owner root:whee

  • How to read some old 5.25" floppies.

    Now I have been a die hard Mac user for a long time but way back when in the late '80 I had a PC that used 5.25" floppies. I would love to get a look at some of the stuff have on those floppies (assuming they still read). Does anyone know how I might