Render XML in Portal - brainstorming

All,
Suppose we have a bunch of XML files - perhaps on the file system - perhaps in a database. Together, they represent an external content management system.
I'm looking for ideas on architecting a "document delivery system" within Portal R2.
Here are some of the requirements:
[1] Portlets created and added to Portal pages
[2] Content available to Portal (on filesystem or db)
[3] Hitting page renders content within portlet
[4] Change in content produces corresponding change in portlet
[5] Process needs to be automatic - only change needed is in underlying XML file - portlet sees any needed change
Thoughts?
Thanks!
Doug

Ok, I solved the problem myself, it was not that complicated...
Just got the HTTPServletResponse from the request and wrote the output there.

Similar Messages

  • XML in Portal

    I apologize if this is not the correct forum.
    Can anyone please describe Portal's current use of XML. Also, what are the future plans for XML in Portal.
    Thanks!

    Ok, I solved the problem myself, it was not that complicated...
    Just got the HTTPServletResponse from the request and wrote the output there.

  • How to update xml from portal

    Can i update weblogic.xml from portal(programmatically). i am using WL
    platform 8.1 sp2.
    Now i am manually adding each principal name.
    For ex:
    <principal-name>mark</principal-name>
    Can i achieve this programmatically from portal.
    Any solution
    TIA
    Mahesh

    this is what i have done but i dont know how to do the rest. i will apprecite any help from u.
    Edited by: man700s on Feb 16, 2010 6:58 AM
    REPORT  Z_XML_FILE_UPDATE.
    TYPES: BEGIN OF ts_staff,
             REF_IND(10)  TYPE c,
             Staff_No(5)  TYPE c,
             Name(50)     TYPE c,
             Room(3)      Type n,
             Phone(7)     Type n,
             Mail(30)     Type c,
           END OF ts_staff.
    DATA: t_staff TYPE TABLE OF ts_staff WITH HEADER LINE.
    DATA: w_staff Type ts_staff.
    DATA T_STRING TYPE TABLE OF STRING.
    DATA W_STRING TYPE STRING.
    call SCREEN 100.
    PERFORM upload_xml_file.
    PERFORM update_xml_tab.
    *PERFORM download_xml_file.
    MODULE USER_COMMAND_0100 INPUT.
    W_STRING = '<allstaff>'.
      APPEND w_string to t_string.
      loop at t_staff into w_staff.
      w_string ='<staff>'.
      APPEND w_string to t_string.
      if T_staff-Ref_Ind = 'X'.
      CONCATENATE '<Ref_Ind>' w_staff-Ref_Ind '</Ref_Ind>' into w_string.
      APPEND w_string to t_string.
      ENDIF.
      if T_staff-staff_no = 'X'.
      CONCATENATE '<staff_no>' w_staff-staff_no '</staff_no>' into w_string.
      APPEND w_string to t_string.
      ENDIF.
      if T_staff-name = 'X'.
      CONCATENATE '<name>' w_staff-name '</name>' into w_string.
      APPEND w_string to t_string.
      ENDIF.
    if T_staff-room = 'X'.
      CONCATENATE '<room>' w_staff-room '</room>' into w_string.
      APPEND w_string to t_string.
      ENDIF.
      if T_staff-phone = 'X'.
      CONCATENATE '<phone>' w_staff-phone '</phone>' into w_string.
      APPEND w_string to t_string.
      ENDIF.
      if T_staff-mail = 'X'.
      CONCATENATE '<mail>' w_staff-mail '</mail>' into w_string.
      APPEND w_string to t_string.
      ENDIF.
      w_string = '</staff>'.
      append w_string to t_string.
    ENDLOOP.
      W_STRING = '</allstaff>'.
      APPEND w_string to t_string.
    ENDMODULE.               
    Edited by: man700s on Feb 16, 2010 7:01 AM

  • Loading of data from XML into Portal

    Hi,
    I have a XML schema generated from a Word document, containing chapters and appendices in diffrent levels.
    Is it possible to load this document into Portal text items, keeping the chapter/appendix structure?
    Regards,
    Nathalie

    Several third-party tools support converting a DTD into a "first-cut" XML Schema. It likely will need a lot of subsequent work to get it into a useable format -- since for example, all of the datatypes would need to be string.
    The tools I've personally used to accomplish this (and surely there are others) are:
    [list]
    [*]XML Authority from Extensibility
    [*]XML Spy 3.0 from Icon Software
    [list]
    The canonical format for XSU insert is precisely the default output format you would get by using XSU to generate XML for a select * from tablename statement.

  • Render xml.. too slow !!!

    so:
    I have a servlet , this servlet is divided in tree great sub-functions
    - getPost() gets data from POST
    - loadData() loads data inside the Object building a DOM
    - render() take from every class the xml ( in cascade) and then do a render
    the problem is in this last step.
    (the application permits to do operations with a database SQL so, shows 'n' records with some buttons for edit, add etc....)
    - getPost() 0.0 seconds
    - loadData() 0.390 seconds
    - render() 1.976 seconds
    obviously the problem is in the render function
    And here I do my question :
    how can I reduce the computing time for rendering ?
    how can taglibs help me ? ( if it can )
    thanks

    - sorry, I can't show you a lot of code because of the copyrights :)
    I can tell you how it works ...
    the render(Document xml) takes the xml Document and renders it with and xsl pre-setted ...that's all
    - yes, I'm using XSLT
    - yes the profiles says that the problem is here
    there isn't another 'custom' method inside the render() :
    Transformer transformerXsl =
    factory.newTransformer(new StreamSource(new File(xslPath)));
    transformerXsl.transform(source, htmlStream);
    the bottleneck is here ... :(

  • Render xml and html content type in single jsp

    I have 2 jsps, one jsp(a.jsp) is throwing content-type as HTML and other JSP(b.jsp) is throwing content-type as xml. I am making use of xsl to render the xml content in html format. But the problem is that i want to include b.jsp in a.jsp, and when i do so b.jsp doesn't make use of xsl for its rendering rather it displays the contents haphazardly.
    Plese help if somebody knows the solution.

    Below the following line ..
    <html:form action="addContact">Add this new form field..
    <html:hidden name="flag" value="0"/>Needless to say that this String variable flag should be defined in your ActionForm.
    Next, instead of ...
    <html:submit property="parameter"><bean:message key="ok.company" /></html:submit>Put this ...
    <input type="button" name="xyz" onClick="callSubmit(1);" value='<bean:message key="ok.company" />'>Then add a JS function as below ...
    <script>
    function callSubmit(flg)
         document.forms[0].flag.value=flg;
         document.forms[0].submit();
    </script>Finally in your ActionServlet, you need to find the value of the ActionForm variable flag via request.getParameter("flag").
    In case the value is set to 1, then it means that you need to send the particular row to DB. You may add additional flag values to correctly identify theparticular row which you may want to send to DB.
    Hope you got it.
    -Rohit

  • XML iView Portal Runtime Error

    Hallo,
    I am trying to fetch RSS feeds through XML iView. The contents displayed, but the bottom of the page gives an error:
    Portal Runtime Error
    An exception occurred while processing your request
    Exception id: 04:02_30/10/08_0069_9080150
    See the details for the exception ID in the log file.
    Any suggestions on this?

    >
    Portal Runtime Error
    > An exception occurred while processing your request
    > Exception id: 04:02_30/10/08_0069_9080150
    > See the details for the exception ID in the log file.
    >
    > Any suggestions on this?
    Could you also check the log file on your portal server and let us know the error in detail?
    Regards,
    Anagha

  • Auto render XML (aepx) file

    Is there a way to auto render a composition in a XML (aepx) file? Watched folders does not support that. Is there a way to incite render through terminal console?

    No.
    You can submit a feature request here:
    http://adobe.ly/feature_request

  • How to render XML data in OBIEE

    Hi
    I have requirement where XML data need to be rendered and parsed in OBIEE reports.I need some help regarding the below questions
    1)How can we call the XML data in OBIEE and can we parse XML file in Text or Table formats
    2)Another requirement is we need to compare two XML file(May be Stored in @ columns) and then display the Message as 'Difference' or 'NO Difference'.
    Thanks in Advance

    hi
    i m having same problem.
    we cant pass XML in Answers but i think (not sure) we can pass in publisher..
    thanks

  • Parse and render XML... and get original replicated?

    Now that I've (temporarily) got iFS working (on another machine for now). I've got an XML question: I moved the airportdefinition.xml into the folder, and then subsequently moved the airport.xml into the folder, whereupon iFS parsed it and stored it. Yeah! However when examining (or copy out) the stored data, it is somewhat different than the original:
    original:
    <?xml version="1.0"?>
    <Airport>
    <Name>airport1.fly</Name>
    <AirportCode>SFO</AirportCode>
    <AirportName>San Francisco</AirportName>
    <FolderPath>.</FolderPath>
    </Airport>
    As recreated by the renderer:
    <?xml version = '1.0' standalone = 'yes'?>
    <AIRPORT>
    <Name>airport1.fly</Name>
    <Owner RefType="Name" ClassName="DIRECTORYUSER">system<!--ID # 96--></Owner>
    <ACL RefType="Name" ClassName="SYSTEMACCESSCONTROLLIST">Published<!--ID # 422--></ACL>
    <CreateDate format="MMM dd HH:mm">Nov 09 15:44</CreateDate>
    <Creator RefType="Name" ClassName="DIRECTORYUSER">system<!--ID # 96--></Creator>
    <LastModifyDate format="MMM dd HH:mm">Nov 09 15:44</LastModifyDate>
    <LastModifier RefType="Name" ClassName="DIRECTORYUSER">system<!--ID # 96--></LastModifier>
    <LockState>0</LockState>
    <AIRPORTCODE>SFO</AIRPORTCODE>
    <AIRPORTNAME>San Francisco</AIRPORTNAME>
    </AIRPORT>
    We'd like (to have cake and eat it) to be able to store parsed xml (to support queryability, indexing, reporting, etc.) but also want to be able to recreate the original xml UNCHANGED.
    If we don't parse it, we can have unchanged data, but then limit the queryability. Other than storing the xml document twice (both parsed and not) is there any way to do this?
    null

    I am glad that you solve this question and share the solution with us, I will mark your reply as the answer.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • O. Portal XML util. Vs. O. Java XMLutil., whats the difference?????

    O. Portal XML util. Vs. O. Java XMLutil., whats the difference?????
    OK, in the O. Portal doc. there is this link:
    http://technet.oracle.com/docs/products/ias/doc_library/1021doc_otn/dev.102/a83730/toc.htm
    that talks about
    oracle.portal.utils.xml.v1
    And then there is the O. Java XML utils. Talked about in:
    http://technet.oracle.com/docs/products/ias/doc_library/1021doc_otn/dev.102/a86030/adx17paj.htm#1000433
    I guess my questions are:
    1) Are there TRULY to different O. XML utils. that do the XSLT transformation, one being oracle.portal.utils.xml.v1, and the other being the O. Java XML utils????
    2) When would you want to use the O..Portal XML (oracle.portal.utils.xml.v1,) stuff for XLST???? Is the oracle.portal.utils.xml.v1 stuff just as robust as O. Java XML utils???
    3) When would you want to use the O..Java XML ( O. Java XML utils. ) stuff???? For XSLT???
    THANKS!!!
    null

    Both use the same Oracle core XML Developer's Kit components for XML parsing and XSLT transformation.

  • Help needed: JSP and portal parameter problem

    When entered following url in the browser, portlet does display parameters name=sandra,age=26 and address=london
    http://portaldev.bank.com/portal/page?_pageid=12,56291&_dad=portal30_dev2&_schema=PORTAL30&name=Sandra&age=26&address=london
    Following jsp is used to display parameters.
    <%@page language="java" import="java.util.*, oracle.portal.provider.v2.render.PortletRenderRequest, oracle.portal.provider.v2.http.HttpCommonConstants"%>
    <HTML>
    <HEAD>
    <TITLE>
    Snoop Page
    </TITLE>
    </HEAD>
    <BODY>
    <B>Snoop Page</B>
    <TABLE border=1>
    <%
         PortletRenderRequest prr = (PortletRenderRequest)request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
         String name=null;
         String value =null;
         for(Enumeration e = prr.getParameterNames(); e.hasMoreElements(); )
         name = (String)e.nextElement();
         value = request.getParameter(name);
         System.out.println("name:--->"+name+" value----->"+value);
         %>
         <TR>     
         <TD><%=name%></TD><TD><%=value%></TD>
         </TR>
         <%
         %>
    </TABLE>
    </BODY>
    </HTML>
    Thanks

    with these unqualified (not prefixed to be specific to this portlet instance) parameter names, you will have to update your provider.xml file to set the <passAllUrlParams> to true.
    There is a little info in this doc http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/ARTICLES/PRIMER.PORTLET.PARAMETERS.EVENTS.HTML

  • Conversion of XML file from ANSI to UTF-8 encoding in SAP 4.6C

    Hi All,
      Im working on SAP 4.6C version.I have generated a XML file from my custom report.It is downloading in ANSI format.But i need to download this into UTF-8 format.So can anyone please let me know how to do this?
    Is this possible in 4.6C version?
    Thanks in Advance,
    Aruna A N

    Hello
    It is possible in 4.6.
    Try this code:
    REPORT Z_TEST_XML_DOWN .
    data:
      lp_ixml type ref to if_ixml,
      lp_xdoc type ref to if_ixml_document,
      lp_sfac type ref to if_ixml_stream_factory,
      lp_ostr type ref to if_ixml_ostream,
      lp_rend type ref to if_ixml_renderer,
      lp_enco type ref to if_ixml_encoding.
    data:
      lp_root type ref to if_ixml_element,
      lp_coll type ref to if_ixml_element,
      lp_elem type ref to if_ixml_element.
    class cl_ixml definition load.
    data:
    udat like lfa1,
    s type string.
    select single * from lfa1 into udat where lifnr = '0000000001'. " <- set here real number
    *** create xml
    lp_ixml = cl_ixml=>create( ).
    lp_xdoc = lp_ixml->create_document( ).
    lp_root = lp_xdoc->create_simple_element( name = 'Node'
                                              parent = lp_xdoc ).
    s = udat-land1.
    call method lp_root->set_attribute( name = 'country_name'
                                        value = s ).
    s = udat-name1.
    call method lp_root->set_attribute( name = 'vendor_name'
                                        value = s ).
    s = udat-ort01.
    call method lp_root->set_attribute( name = 'city_name'
                                        value = s ).
    *** render xml
    types: begin of xml_tab_line,
             line(256) type x,
           end of xml_tab_line.
    types: xtab type table of xml_tab_line.
    data: t_xml type xtab,
          size type i,
          rc type i.
    lp_sfac = lp_ixml->create_stream_factory( ).
    lp_ostr = lp_sfac->create_ostream_itable( table = t_xml ).
    lp_enco = lp_ixml->create_encoding( character_set = 'utf-8'
                                   byte_order = if_ixml_encoding=>co_none ).
    call method lp_ostr->set_encoding( encoding = lp_enco ).
    lp_rend = lp_ixml->create_renderer( ostream = lp_ostr
                                        document = lp_xdoc ).
    rc = lp_rend->render( ).
    *** export to file
    size = lp_ostr->get_num_written_raw( ).
    call function 'WS_DOWNLOAD'
      exporting
        bin_filesize = size
        filename = 'c:\sapxml_test.xml'
        filetype = 'BIN'
      tables
        data_tab = t_xml
      exceptions
        others = 1.
    It is just simple example.

  • What are the major logic steps of WL Portal Server process a portal request

    Hi,
    I comes from IBM and we provided a product to monitor most types of J2EE App Server about transactions and performance.
    we will monitor WebLogic Portal Server in next release.
    So would you please tell me:
    How Weblogic Portal handles a page request from browser, what are the major logic steps that a page requests are fulfilled, which areas in Weblogic Portal are most likely to cause response time problem. For example, We monitor WebSphere Portal Server as the following major steps:
    Portal Page loading, Model building, Page rendering, portlet action, etc....
    we look forward to get your developer helps since we cann't find related documents over your website.
    Thank you very much
    Edited by wutingbin at 12/28/2006 12:35 AM

    WebLogic Portal, if Desktop enabled, it will render from Desktop->Portal->Books->Pages-->Portlets. You can get these information from WebLogic E-Docs.

  • Error While Uploading XDB files in Portal.

    Hi Experts,
    I have created an adobe forms which consists of Date,Text,NUmeric fields. After saving the same file in xdb format and trying to upload the same file to generate xml in portal, it is throwing error in create callable object --> Upload Default Language Template.
    The error is Could not retrieve template fields: Wrong document format or adapter mismatch from adapter.
    Your help will be higly appreciated.. Please help me...
    Regards

    .

Maybe you are looking for

  • New browser window problem

    I have many links on one page of my site that open in a new window. After clicking on an image that is in the middle of a page to open a new browser window, when returmning to the original page it has scrolled back up to the top of that page again. I

  • Changing date sequence in ical

    We have just moved back to England from the USA. I would like to change in ICAL the date month sequence from the US format, month first followed by date then year,to the European format, date first followed by month and year. Any help would be most w

  • CS3, Epson 2880 - Dark Prints

    Hopefully some one might be able to help as I am a tad stumped with a problem of dark prints from CS3 on an Epson 2880. Macbook Pro with 10.4 Tiger I have a calibrated monitor CS3 setup with American Prepress colour settings Raw picture imported into

  • Dreamweaver "saving" error, Access was denied

    I'm Running Windows 7.  I just loaded all my client websites back on my computer.  everythings was working fine as of last night.  I turned on my computer to continue work on a site, and all of sudden I'm getting this error when I try to SAVE the wor

  • SAP BW Query Vs SAP BW MDX Query

    Dear Gurus, Can someone please tell me the difference and advantages of connecting Crystal Reports2008 to  "SAP BW Query" & "SAP BW MDX Query"while . My main concern being SAP BI resource is , we don't create SAP MDX queries in BW. Regards, -Neha