Displaying content item -(IContentItem) in portlet using Content Server API

Hi,
I am using the latest Content server API in my remote server to get the published content items. I have to display the content item in the JSP portlet.
So how to display the content item in the portlet, if you have the IContentItem Object retrieved from the content server ? Is there any mechanism to get the HTML code/JSP code that corresponds to the IContentItem object?(All the content item will be an html or jsp )
Currently we are extracting the publish url and opening an http connection to retrieve the html, which is not a good solution if you have mutiple portlets in the same page. So please suggest how can I display the content item (IContentItem Object) in the portlet.?

Hi Anand,
I am facing the same problem on IBM WebSphere Portal 5.1.
Did you find a solution to your problem ?
Thanks
Ganesh

Similar Messages

  • How to write chart application using netcharts.server.api ?

    Hi to all.
    i need to write a chart application in Java, which makes use of netcharts.server.api.
    Iam having only jar files. Which are netcharts.jar, chartworks.jar, commons-httpclient.jar, commons-logging.jar and ncstoolkit.jar in my hand.
    I need to make use of above jars only to build line graph or charts or any thing.
    That application has to work in html or jsp or servlets, if possible in swings.
    can any buddy please help me in this regard and guide me.
    I am very much thank full for any reply.
    please help me.
    Thanks in advance.

    Hi su,
    Thanks for your reply.
    can you tell me in detail where you have used those jar files and how?
    Comming to my basic application,
    iam in the way to find first basic application using netcharts.server.api package.
    I came to know many things.
    I found the how to build application in JSP's
    But when iam executing that, it is throwing error like
    {color:#ff6600}netcharts.server.api.NSToolKitException: java.net.ConnectException: Connection refused: connect{color}
    at the time of calling
    {color:#ff6600}String thechart = toolKit.getChartAsImageAndMap(
    "/CDXExamples/barxDATAvariable.cdx";,
    chartParams,
    request,
    true);
    {color}at first i have created
    {color:#ff6600}NSWebToolKit toolKit = new NSWebToolKit("Examples");{color}
    toolkit object with out errors.
    But in other reference i found the code like
    {color:#ff6600}NSWebToolKit toolKit = new NSWebToolKit(NETCHARTS_SERVERNAME, 8001,"MyFirstProject");{color}
    Here it is saying
    replacing {color:#ff6600}NETCHARTS_SERVERNAME{color} with the machine name where NetCharts Server is installed:
    Iam getting doubt, is it necessary to install netcharts server to make use of netcharts.server.api classes?.
    can any buddy please help me in this regard.
    Thanks in advance.

  • Portal API's to display "page published as a portlet" using pl/sql

    I have a custom pl/sql portlet that we have developed. We want to programatically display the contents of another portlet which is a "portal page published as a portlet". I know when you have a provider portlet you can simply call it like this:
    portal.provider_name.show();
    But how do you display a page published as a portlet using portal API's?

    Nobody has a clue?

  • Display 4 items in a row using cfloop and divs

    Hi
    I have done this quite successfully using tables.
    What i have is a catalogue.
    It has 12 items in it.
    I want to display 4 on a row.
    I am using divs
    Here is what 1 row looks like in HTML:
    <div class="span-18 last">
        <hr /> 
        <div class="span-1"> </div> 
        <div class="span-4">
              A
        </div>   
        <div class="span-4">
             B
        </div>   
        <div class="span-4">
             C
        </div>
        <div class="span-4">
             D
        </div>
           <div class="span-1 last"> </div>
    </div>
    How do u use CFLOOP and DIVS to show 4 items on a row, then break to the next 4.
    Assistance would fantastic.
    Regards
    Flash

    Use something like this:
    <cfif index mod 4 eq 0></cfif>
    To know when you need to create the next row.

  • How do you display a graph on another machine using vi server?

    I have to machines one server and one client. So far I have set things up so that the client can read and control all the controls on the server machine "test.vi". Everything there is working fine. However, when I use the Vi method "get all control values" only the controls on that test.vi are listed and not the graph or any other indicators. I would like to be able to push a button on the client machine to display the data being displayed on the server machine. Is this possible? If so how? There doesn't appear to be any vi methods titled "get all indicator values".
    I have included vis to help show my problem.
    Thanks in advance for your help.
    Greg
    Attachments:
    Master_3.vi ‏191 KB
    slave.vi ‏32 KB

    Greg,
    At least since LabVIEW 6.0, the method "Get all Control Values" has a second property called 'Controls' that takes a boolean input. If left unwired or set to true, you get the Contol values. If you set it to False, you get all the indicator values.
    Ed
    Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
    Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.

  • Display content items into custom remote portlets

    Hi, I need to dinamically display content server items in a custom portlet, using the EDK, but I did not find any way to get this result. Is it poossible to get an object (in my case a published content item) within an ObjectManager and display it's content (in our case a simple HTML content).
    I need to do this because whe have to format the home page of the portal in order to display the first half in three columns and the second half in two columns and we are trying to do this implementing a custom portlet (in the content canvas area) containing a three columns table displaying each a different content item.
    Thank you.

    There are basically two ways that I have done to open the content item editor.1) From a content presentation template you would call a JavaScript function like:
    <script>
    function edit_article$$TOKEN$$() {
    var width = 700;
    var height = 527;
    var left;
    var top;
    left = window.screenLeft + 10;
    top = window.screenTop - 30;
    if ( (left + width/2) > screen.availWidth ||
    (top + width/2) > screen.availHeight ) {
    left = 0;
    top = 0;
    var params = "height=" + height + ",width=" + width + ",left=" + left + ",top=" + top + ",screenX=" + left + ",screenY=" + top + "toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1";
    window.open("<pcs:value expr='pcs_location'></pcs:value>/published_tools/content_item.jsp?ciid=<pcs:value expr='pcs_id'></pcs:value>&title=ContentItemEditArticleTitle", '', params);
    </script>
    2) The other way is using the content Item API. You get the editor url from the content item, which you already have. Now what you are doing below is almost correct. The importance of the pt:objectid is crucial. Take a look at the web docs on Plumtree ([url[/url]http://www.plumtree.com/edoc/Enterprise_Web_Development_Documentation.htm) under portlets/adaptive portlets/transformer tags/links. So the reason yours is not working is that you are missing some ptargs. The pt:objectid needs to be the objected of the "Content Administrator" portlet. This is for 2 reasons. One is so that you get the correct PTargs and the second is that it will use the basic auth information stored in its web service. So if your objectid of the portlet was 201 then it would look like this:
    lblHref.Text = "<pt:gatewayLink xmlns:pt='http://www.plumtree.com/xmlschemas/ptui/'pt:ObjectID='201' pt:href=\""+ url + "\" target='TinyURL' onclick=window.top.open('','TinyURL'," + WindowOpenParams + ");>"+myContentItem.Name + "</pt:gatewayLink>";
    Andrew Morris | bdg | [email protected]| www.bdg-online.com
    Like blogs? Check out bdg's Plumtree blog at http://bdg-plumtree.blogspot.com.

  • Content Server and EDK

    Hi All,
    At Odyssey this past year it was discussed that the COntent Server API would be incorporated into the EDK (as Collaboration Server has been) in Q! of 2005. Is there any word as to when this will be out?
    Thanks,Karen

    Excellent! Thanks Ross. My email address is [email protected]
    PS. I hear I'll be seeing you in Australia in a few weeks!!! Great news!!!

  • Use LoginToken for Server API Session

    I get an Invalid pointererror when I try the code below. I'm trying to use the Login Token passed from the portlet as the token for the Server API Session I create.
    portletContext = PortletContextFactory.CreatePortletContext(Request, Response);
    //Get Remote Session
    IRemoteSession prcSession = portletContext.GetRemotePortalSession();
    //Get UserLogin token from Portlet
    stringsUserLoginToken = prcSession.GetLoginToken();
    //Reconnect to portal session with token
    IPTSession oPTSession = PortalObjectsFactory.CreateSession();
    oPTSession.Reconnect(sUserLoginToken);

    We are using 5.0.3. I found I could use the Login Token passed from the portlet in a Server API Session by doing the following:
    IPTSession pSession = PortalObjectsFactory.CreateSession();
    pSession.Reconnect(sLoginToken);

  • Delete a collab project using Server API 5.0

    Is there a way to delete a collab project using the Server API 5.0? I know I can delete a project using the EDK but I need to delete a project using the Server API. Can anyone help please?
    Thanks in advance.

    Thanks Imah.
    The EDK java doc said I could use RemoteSessionFactory.getExplicitLoginContext to access Collaboration Server API but I am getting the following error:
    Exception in thread "main" java.lang.NoClassDefFoundError: com/plumtree/openfoundation/util/XPMalformedURLException
    Any idea why? I am using EDK 5.2.0
    I could open this URL ("http://hostname/ptapi/QueryInterfaceAPI.asmx") in a browser.
    The code is as followed:
    try {
    IRemoteSession rSession = RemoteSessionFactory.getExplicitLoginContext(new URL("http://hostname/ptapi/QueryInterfaceAPI.asmx"),"Administrator", "");
    } catch (Exception e){
    System.out.println(e.toString());
    Can anyone help please? Thanks.

  • Is it possible to use a content query web part to pull and display rows/items from an Excel spreadsheet saved in a SP library?

    I have an Excel spreadsheet that I want to upload to an SP library. Is it possible to display these items (in a non-excel format, more like an SP list format) in a web part? 

    Have you tried using the Excel web part
    Display Excel content in an Excel Web Access Web Part

  • Error Displaying Portlet Preview created from Content Server templates

    I created portlet from content server announcement portlet template.Whet put on the page this portlet shows the following error message:
    Error Displaying Portlet Preview.Error Getting Content from Portlet.
    Same error with portlet created from the news template.

    If the link exists in TOA01, why is the dosumnet not visible ? When i use the Function Module ARCHIVOBJECT_DISPLAY, i get the error -
    Error when opening document with HTML control:DP_ERROR_GENERAL
    Can someone please let me know what are we doing wrong ??

  • Fetch XML from Content server to Portlet and display as HTML

    Hi,
    I want to fetch the XML from the content server and display that XML in the Weblogic Portlet as HTML.
    The main reason is that data will be contributed by the users in UCM and then I had to get that data from content server and display in portlet
    Please Help........
    Thanks,
    Vinod

    Vinod:
    Probably what you're looking for is to bring the content over using the UCM SPI adapter for WLP's VCR:
    [http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/ucm_adapter/intro.html]
    And then to display the content using a custom template using Content Presenter:
    [http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/cm/displaytemplatesCM.html]
    [http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/portlets/development.html]
    When you say you want to fetch xml, is that because it's a contributor data file? You can either read the property values directly from the VCR, or use the info you get from the node (such as dDocName) to then use a UCM/WCM web service to retrieve formatted content and put it in an iframe. There are a lot of ways to go in formatting the data.
    You can even add edit capabilities to your Presenter template by calling the 'edit data file' web service of WCM.

  • How to display content without using webcenter services - task flows?

    Good day!
    I wanted to create a portlet where I can display and update an xml content retrieved from UCM Content Server. How can I do this without using taskflows (webcenter services)?
    Thanks in advance!
    Keith

    Hey Keith,
    Since you are already using the getResponseAsString() method you have your GET_FILE call working. To get the xml file as the file itself you need to instead call the getResponseStream() method. This will get you an InputStream representing the response.
    Once you have the stream you can do the following (I assume you are on a jsp page or somewhere you have access to the HttpServletResponse):
    String contentType = serviceResponse.getHeader("Content-Type");
    InputStream xmlInputStream = serviceResponse.getResponseStream();
    OutputStream outStream = response.getOutputStream();
    response.addHeader("Content-Disposition", "attachment;filename=myXmlFile.xml");
    response.setContentType(contentType);
    StreamUtil.copyStream(xmlInputStream,outStream,true,true);
    The runthrough:
    1. get the content type of the file coming back form the GET_FILE call
    2. grab the file as an InputStream
    3. get the output stream representing the response
    4. add a header to the response to trigger the "download file" dialog
    5. set the content type of the response
    6. copy the input stream to the output stream to send the xml file to the browser
    Notes:
    -StreamUtil is part of the RIDC jar
    -use Content-Disposition = inline to tell the browser to try and render the file in it's window if it can.
    Hope that helps,
    Andy Weaver - Senior Software Consultant
    Fishbowl Solutions < http://www.fishbowlsolutions.com?WT.mc_id=L_Oracle_Consulting_amw >

  • Content Server Portlets Not Displaying

    Help!
    We're running Portal v5.04, Java under Windows, Content Server v6.0, Tomcat v4.1.31. Multi-machine installation...
    After logging into the portal as Administrator (or some user with admin privileges), we get an error where the Content Server Administration portlet is placed saying "Content Administration cannot be displayed due to an unknown error.". Get the same thing with any other Content Portlet...
    This installation was fine beginning of last week, but started showing this problem late in the week. All of the diags I know of for testing Content, Collab, and Studio (all installed on the same server) show all greens. Tried looking at logs - nothing. Tried PTSpy during login (portlet is on "My Home" page - should display automatically) - nothing remarkable.
    We have multiple admins, and it's possible that something was changed (unbeknownst to me). Frustrated and not sure even where to start looking for a solution to this. Any Ideas?
    Thanks!
    Mike Sanders, LLUMC

    The fact that bouncing EBS fixes the issue temporarily indicates that the problem is most likely on the EBS end, but we haven't encountered that specific issue. What OS are you using to host EBS? Are you purging the J2EE cache when you bounce the services?
    Feel free to reach out to Anne or myself if you'd like to dive into this. We could test with an alternate content server to see if that helps isolate the problem.
    Best,
    John Hobart

  • How to display content items in two columns?

    I have a simple content area set up, that I am adding items in
    (items that happen to be uploaded documentation files). I have a
    page created that displays the Content Area, with my own
    headers/banners etc.
    I want to display the item(s) under each folder in the content
    are, in two columns, but I can't figure out how?
    Thanks.

    Dave,
    Edit the Folder Style. Select the Folder Layout tab. Select
    the Region Properties you want to modify (e.g. Regular Items).
    Near the bottom of the page you can specify the number of
    columns.
    Regards,
    Jerry

Maybe you are looking for

  • 10.6.8 randomly freezing, CPU usage goes to 200% and never reduces

    Hi everyone, I have a Macbook running 10.6.8 and in my account, there are random times where CPU usage spikes, applications cannot be launched, and killing various processes causes them to spike right after relaunch. It almost always seem to have one

  • IPhoto changes my dpi while editing - what to do?

    Hello! I have iPhoto 6 and have taken over 500 pictures for a wedding. Now they want to print bigger photos (A4) from my photos. All of a sudden we notice that all of the photos that I have taken with my Nikon D70, that are vertical have the dpi 70 i

  • Mapping runtime Exception

    I have tested my mapping in IR, it is working good. Problem comes it is receving data from sender system. I have checked the sender side data type and Iam receving the data properly, once the data reaches XI, it could not map it to target structure.

  • Streaming music from iPad

    TRying to play music from ipad2 on appletv..I see my library on tv but can not control from ipad

  • Server wont accept smtp relays

    I have a 10.5 mail server that until recently accepted smtp connections from our users while offsite. For no apparent reason we are now getting a message that the server does not accept relays. I have turned off the accept relays only from these netw