URGENT controller class and XML file

Hi there,
I understand that oapagecontext.getParameter("FieldID") returns the field of XML. So for example in my xml i had this:
<oa:messageTextInput id="AActiveTo" dataType="DATE" viewName="RoleAdminVO" prompt="Active To" viewAttr="ActiveTo" readOnly="${oa.RoleAdminVO.SecuredFlag}" columns="15"/>
And on the front end I typed in "25-Aug-2006". My oapagecontext.getParameter("AActiveTo") should return "25-Aug-2005".
However is this only true if I put oapagecontext.getParameter within my processFormRequest of the controller class which the XML is pointing to?
Cheers

Or you can apply a XSLT transform as per http://blogs.msdn.com/b/mattm/archive/2007/12/15/xml-source-making-things-easier-with-xslt.aspx
Arthur My Blog

Similar Messages

  • Mapping java classes to XML files

    Hi Friends !!
    Please I need your help.
    Does somebody out there know any framework or API that helps me to map Java classes to XML files.
    Something like:
    public class Test {
        public int x;
        public int y;
        public int sum(){}
    }to something like:
    <?xml version="1.0" encoding="UTF-8"?>
    <class>
    <className>Test</className>
    bla
    bla
    bla
    </class>
    Any tips?
    Thanks in advance
    Cleverson

    JAXB will create classes from an XML schema, SAX is a parser library and JAXP is a library of XML a bunch of XML tools.
    I don't care for JAXB too much. I would skip it and go right to the JAX-RPC spec (WebServices).

  • HTML and XML files open in same window(KM Navigation iView)

    Hi All,
    I have created a KM navigation which is pointing the folder inside the documents repository. This folder contains HTML and XML files. It is rendering fine. But, when I click on the file links in KM Navigation iView, it is opening in new window.Here I need to open in same window. How can I acheive this?. Please help me.
    Thanks & Regards,
    Venkatesh R

    Hi ,
    check the below thread and try options mentioned in it
    https://www.sdn.sap.com/irj/sdn/thread?threadID=72594
    Koti Reddy

  • Have itl and xml files on external hd am running home premium. can  no longer access files, am told this is because they were created with a newer version of itunes. also when i try to download 10.3 it wont, just says invalid drive j and for me to try aga

    i am running vista home premium on desktop and vista basic on laptop. have placed my itunes music with .itl and .xml files onto external drive connected to another desktop running vista and can no longer access music on first two mentioned comps only on the one connected to external drive. always am told that the library cant be read because it was created using a newer version of itunes. have tried to download 10.3 but it always tells me that i have and invalid hard drive j and to try again. any ideas?

    Older versions of iTunes cannot read libraries created with newer versions of iTunes. You need to have the same version of iTunes on all your PCs. Is that the case?
    As far as the problem installing iTunes goes, see this article from b noir on dealing with the problem:
    https://discussions.apple.com/thread/2450004
    If you get to the point where you need the Microsoft Installer cleanup utility, you will need more help as it has been withdrawn by Microsoft. but I am hoping the virtual drive trick will work,

  • How to convert a Form to a Text file and XML file?

    Hi:
    I want to convert a Form to a Text file and XML file,but I don't know how convert?
    Please help!
    Oracle Form Builder V10.1.2.0.2
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0
    Thanks in advance!

    ..or follow the steps in Mtalink note; Doc ID: Note:196924.1
    Forms XML Conversion Feature ( Converting Forms To XML)

  • [svn:osmf:] 16580: Converted classes and project files to work in flex 3.5

    Revision: 16580
    Revision: 16580
    Author:   [email protected]
    Date:     2010-06-16 17:08:07 -0700 (Wed, 16 Jun 2010)
    Log Message:
    Converted classes and project files to work in flex 3.5
    Modified Paths:
        osmf/branches/zeri-certification/Test_Apps/FlexUnit4/.actionScriptProperties
        osmf/branches/zeri-certification/Test_Apps/MediaTests/.actionScriptProperties
        osmf/branches/zeri-certification/Test_Apps/MediaTests/html-template/history/history.js
        osmf/branches/zeri-certification/Test_Apps/MediaTests/html-template/index.template.html
        osmf/branches/zeri-certification/Test_Apps/MediaTests/src/InstructionsForm.mxml
        osmf/branches/zeri-certification/Test_Apps/MediaTests/src/MediaTests.mxml
        osmf/branches/zeri-certification/Test_Apps/MediaTests/src/ZeriTests.mxml
        osmf/branches/zeri-certification/Test_Apps/Zeri_Custom_Player/.actionScriptProperties
        osmf/branches/zeri-certification/Test_Apps/Zeri_Custom_Player/html-template/history/histo ry.js
        osmf/branches/zeri-certification/Test_Apps/Zeri_Custom_Player/html-template/index.templat e.html
        osmf/branches/zeri-certification/Test_Apps/Zeri_Custom_Player/src/Zeri_Custom_Player.mxml
        osmf/branches/zeri-certification/Test_Apps/Zeri_Custom_Player/src/comps/LogBuffer.mxml
    Added Paths:
        osmf/branches/zeri-certification/Test_Apps/MediaTests/html-template/AC_OETags.js
        osmf/branches/zeri-certification/Test_Apps/Zeri_Custom_Player/html-template/AC_OETags.js
    Removed Paths:
        osmf/branches/zeri-certification/Test_Apps/MediaTests/html-template/swfobject.js
        osmf/branches/zeri-certification/Test_Apps/Zeri_Custom_Player/html-template/swfobject.js

    Hi for anyone getting similar issues,
    the solution is described in http://forums.adobe.com/message/3302944#3302944
    This is not a bug.
    Arnoud

  • Where to put common classes and jar files

    hi,
    i want to put some classes and jar files in a common folder so that it can be accessed by other applications is there any way doing that.In tomcat server they have common and shared directories once any classes are into that folder they are being accessed easily ,but i am having problems with sun one .
    Regards
    Ameem Sami

    Did you find a solution for this? I'm having the same problem.
    Thanks,
    Tony

  • Best way to handle .properties and .xml files

    Hi,
    I have an application which contains so many properties and XML files, these are a part of WAR file which we deployed in
    tomcat server. Whenever we make changes to these properties and XML files we redeploy the app and start the server.
    Is there any way we can make sure that these files can take changes without redeploying or starting the server?
    Please clarify.
    Thanks.

    Sure - keep them outside of the war. Pick any directory where you can put them (a directory where the server is allowed to read of of course), load them from that directory in your application. Make sure you can reach that directory through (S)FTP to easily be able to modify them. Then all you need is a way to reload them in the application, should the information be cached.

  • Forgot to backup itunes library.itl and xml files

    I backup pretty much everything. Unfortunately I forgot about the itunes library datase files, the itubes library.itl and xml files. The hard drive has been repartioned and formated, so it's gone. I do have all the music in the exact same directory structure though. Both versions are Windows 7 x64. I aslo have my iPOD.
    What I want to figure out how to do is import the database into a new install of itunes. So the music and stuff doesn't matter. It's all there in the same set of folders, with the exact same path as before. Is there any way to create the itl and xml files containing the metadata from the iPOD?
    I wouldn't even be all that bummed if I had to let my music import from the hard drive again. I just really really want to import my playlists. That would really suck if I had to type them all in manually from the iPOD. If anyone could point me int he right direction, I would really appreciate it.

    Ok googlers from the future, here is the sultion I used.
    This solution puts everything back to normal with minimal work, but it costs you however much disk space is on your ipod. I downloaded the copytrans suite off the piratebay. Then I used the ipod copy to back up my ipod. This will copy things to folders based on tags. So you have to have a second copy of your music. Once it is backed up remote the itunes library files from the top folder of the itunes library. Start itunes, and then go to import playlist. Then you select the xml file from your ipod backup. This will import the entire library into itunes. When you sync your ipod it will say iit is going to delete everything and reload it, but it doesn't. If there was stuff that was no in the library it would delete it, but there won't be because the library came from your ipod to being with. So it just copies anything to it that wasn't there, if there is anything.
    From that point, when you want to add stuff to your library/ipod, you have to put a copy of the music in the library you made. So all the music you want on your computer and your ipod will take up double space on your hard drive because you have to put a copy in the library folder. Once it is there, you just go to add folder and select your library folder. THis will make it rescan and put the new songs in the database.
    The good part of this is you don't have to do selective ipod loading. You make the selection when you copy to the library folder. So at that point you just sync your ipod making an exact copy.
    That was the best solution for me anyway, with a big library and lots of playlists. I also never use itunes. The sole purpose of having itunes is to load my ipod. My ipod I use daily though. I don't drive anywhere without it connected to my stereo. Being able to select anything in a massive music library from my head unit while driving around is seriously awesome.

  • New PC-do I need to transfer Itunes library files (itl and xml files?)

    Hi gang,
    I followed the Itunes tutorial for Windows and moved my Itunes music library to a EHD as it was filling up my laptop. I left the itl and xml library files on the laptop hard drive as instructed.
    However, this laptop is a work PC and if I change jobs I will need to download a new version of Itunes to the new PC. I know how to import the files from the EHD but my question is the following:
    1. Do I need to back up the itl and xml library files to the EHD before I give back the work PC? It seems likely since they contain info about the playlists.
    2. Once I download Itunes on the new PC would I just copy the library files onto the hard drive or can they remain on the EHD?
    It sounds like (from reading some info from Chris CA) that I need to make a copy of the Itunes folder (which includes the itl and xml files) from the laptop hard drive and put it on the EHD inside the EHD Itunes folder. Then with the new PC load a new version of Itunes and hold the shift key when launching. Then I would select the library from the EHD.
    Is that correct?
    Thanks!
    Any help would be appreciated as I cannot find anything on this in Itunes help or the forum.

    Assuming you start with a standard configuration which is:
    The iTunes folder in My music on your c: drive and all your music in the iTunes Music folder in the iTunes folder on the c: drive.
    Starting from there, with iTunes closed, you copy the iTunes folder to an external drive, this also copies the music in the iTunes Muisc folder.
    To move to a new PC, you install iTunes, then you drag your new iTunes folder to the desktop, then you replace it by copying the iTunes folder from the external drive.
    With this set up you can also run entirely on the EHD if you want to. Just start iTunes with the shift key held down, navigate to the iTunes folder on the external drive an choose iTunes Library.itl. This could be useful if you want to dake the EHD to work.
    If you are not starting from the default position I described, some adjustments would have to be made, but it would need an exact descripition of how your folders are set up at the moment.

  • I fouled up; erased library .itl and .xml files; need a little help

    I think I see what I did wrong (my issue relates to this reply post I submitted earlier today >> https://discussions.apple.com/message/16254985#16254985 but I don't think there's any need to go back and read that post to get the gist of my problem).
    So, after knocking around and reading a whole bunch of forum posts and Apple support pubs, I now know I did something dumb.
    Simply put, last night, in the course of attempting to delete from my MacBook Pro the iTunes library file residing there (the one designed to contain actual media files, i.e., music, books, podcasts, etc.), I also deleted the iTunes Library.itl and iTunes Library.xml files.  Yes, doh! is right.
    [BTW, the idea behind deleting the media library on the MBP was because my media files are -- and have been for some time -- located on an external hard drive.  So the good news is I still have all my media.  Of course, the bad news is I lost all playlists and a host of song-specific information and I'm sure a bunch of other stuff that is organized on the iTunes Library.itl file.  (Apple's helpful info sheet on the .itl and .xml files at >> http://support.apple.com/kb/HT1660)]
    So  I opened up iTunes today and there is nothing there, i.e., looks like just opened for the first time ever.  I now know that in the absence of the .itl and .xml files (which I trashed yesterday), iTunes went ahead and created new, empty versions of these files.
    HERE'S THE QUESTION: what should or can i do now to rebuild my library?  My media files still reside on my external HD and there they must stay because there isn't remotely enough room on the MBP hard drive itself.
    I'm just sort of stumped.  And skittish.  I don't want to make another dumb mistake that will make things even worse.  Any ideas?

    Hey, sorry to hear that, but good to know  that you have all your "stuff" and its just a matter of getting it all back together in the right place.  So, I have some ideas why it happened to me and maybe why this happened to you, which may be relevant later, but first I'll first explain how I got out of this jam.
    After much investigating, I finally did a search for .itl files and ended up "finding" one in the Media folder itself, specifically in the Music folder (yeah, should have done this much earlier).  Looking around, I also found the other files and folders that are supposed to be at same directory level as "iTunes Media." 
    At this point, I just moved them back to where they were supposed to be and opened iTunes and, voila, there was my stuff (albeit not quite all of it or exactly as it should be).  Then, after making sure my Media folder was properly identified in Advanced Preferences, I checked the boxes under File -> Library -> Organize Library and iTunes started doing some activity that seemed like it was reorganizing or rechecking the organization (you can see I am no expert here).
    So like I indicated, it wasn't exactly the way it was when I last used iTunes before I had the problems (e.g., various podcasts, books, etc. werent there -- so i just added them into the Library manually, i.e., File -> Add To Library, etc.).
    Anyway, I hope this helps if you haven't already fixed your problem.  If not, I might have some other ideas I came across while still searching for solution to my problem.  Best of luck.

  • URGENT: Importing deployed-composites.xml File into MDS

    Gurus,
    I am running into a problem whereby soa-infra application crashes upon server restart.
    This doesn't allow soa_server (managed server) to come up properly.
    I see the following error during server start up:
    <Sep 20, 2011 3:02:18 AM PDT> <Error> <Deployer> <BEA-149231> <Unable to set the activation state to true for the application 'soa-infra'.
    weblogic.application.ModuleException: [HTTP:101216]Servlet: "FabricInit" failed to preload on startup in Web application: "/soa-infra".
    oracle.fabric.common.FabricException: Error in getting XML input stream: oramds:/deployed-composites/default/AttachmentSR_Sample_Composite_rev1.0/SCA-INF/lib/rt.jar: oracle.mds.exception.MDSException: MDS-00054: The file to be loaded oramds:/deployed-composites/default/AttachmentSR_Sample_Composite_rev1.0/SCA-INF/lib/rt.jar does not exist.
    at oracle.fabric.common.metadata.MetadataManagerImpl.getInputStreamFromAbsoluteURL(MetadataManagerImpl.java:276)
    at oracle.integration.platform.common.MDSMetadataManagerImpl.getInputStreamFromAbsoluteURL(MDSMetadataManagerImpl.java:545)
    at oracle.integration.platform.common.MDSMetadataManagerImpl.transferFile(MDSMetadataManagerImpl.java:820)
    at oracle.integration.platform.common.MDSMetadataManagerImpl.copyTree(MDSMetadataManagerImpl.java:801)
    at oracle.fabric.composite.model.CompositeModel.getClassLoaderFiles(CompositeModel.java:347)
    at oracle.fabric.composite.model.CompositeModel.getCompositeClassloader(CompositeModel.java:203)
    at oracle.integration.platform.kernel.WLSFabricKernelInitializer.deployComposite(WLSFabricKernelInitializer.java:506)
    What I am doing is this: I have added a SCA-INF/lib folder inside the project and added rt.jar file in it. Then I tried to deploy it, deployment did not happen successfully however, it made an entry in MDS as I could see entire composite in MDS along with rt.jar file. Now, when server restarts, it always tries to load the jar file from MDS and for some reason, it doesn't find the jar file despite it being very much in MDS at the correct path.
    Because of this, I ran into a deadlock situation.
    I cannot remove the composite from MDS (using removeSharedData ant task or WLST offline command) as my soa managed server is not up. So, request to http://serverhost:8001 throws 404 error when I use removeSharedData Ant task and WLST offliine sca_undeployCompoiste command. And, this composite entry in MDS doesn't allow the server to start up properly!!
    As another workaround, I've modified deployed-composites.xml file. But without soa-infra listed in EM Console, I cannot import the file.
    Does anyone know how I can import/upload deployed-composites.xml file from outside EM console (and without soa-infra being up!)?
    Thanks-
    Ashish

    If its urgent maybe you can delete the record from all the deployed composites from the Metadata database (you will have to redeploy all of them and you will leave some tush in the content tables).
    connect to the metadata database (XXXXX_MDS schema) configured for that soa_server, you will find a table named MDS_PATHS.
    there you will see all the paths of the files stored in the MDS.
    backup the table and then try
    1) THIS COMMAND DELETE ALL COMPOSITES PAHTS FROM METADATA but it leaves some blob content orphan:
    Execute:
    delete from mds_paths where path_fullname like '/deployed-composites%' and path_fullname <> '/deployed-composites' and path_fullname <> '/deployed-composites/default'; --if you have another partition you can filterit there
    restart the soa_server and the soa-infra will start with no composites. You will have to redeploy them all (but it will come up :).
    I use this method when the soa-infra wont come up because it doesnt found some file on /deployed-composites/.....................
    Anyway, if something goes wrong you can restore the table from your backup ;)
    글 수정: user7691407

  • SAX and XML file, how to?

    Hi,
    I'm going to use JAXP and SAX to read my application XML config file.
    But I'm lost, I don't know how to read the elements.
    How does it function, do I have to put in the startElement() method as many "if" as entitys I need to process?
    And how can I guess if an element belongs (is inside) one element or another?
    Example:
    <program>
    <printer id="xx" type="aa">
    <path> /aa/cc </path>
    </printer>
    <source>
    <path> /aa/bb </path>
    </source>
    </program>
    for this XML, how would you code it? this way?
    startElement (String uri, String localName, String qName, Attributes attributes) {
    if (localname.equals("printer")) {
    //get printer attributes
    } else if (localname.equals("source")) {
    //get source attributes
    thanks!

    i have one sample code through which u can read the elements from xml file.
    // File SaxLister.java
    import java.io.IOException;
    import org.xml.sax.Attributes;
    import org.xml.sax.SAXException;
    import org.xml.sax.XMLReader;
    import org.xml.sax.helpers.DefaultHandler;
    import org.xml.sax.helpers.XMLReaderFactory;
    public class SAXLister {
    public static void main(String[] args) throws Exception
    new SAXLister(args);
    public SAXLister(String[] args) throws SAXException, IOException
    XMLReader parser = XMLReaderFactory.createXMLReader("org.apache.xerces.parsers.SAXParser");
    // should load properties rather than hardcoding class name
    parser.setContentHandler(new PeopleHandler( ));
    parser.parse(args.length == 1 ? args[0] : "parents.xml");
    /** Inner class provides DocumentHandler
    class PeopleHandler extends DefaultHandler
    boolean parent = false;
    boolean kids = false;
    public void startElement(String nsURI, String localName,
    String rawName, Attributes attributes) throws SAXException {
    // System.out.println("docEvents" + "startElement: " + localName + ","
    // + rawName);
    // Consult rawName since we aren't using xmlns prefixes here.
    if (rawName.equalsIgnoreCase("name"))
    parent = true;
    if (rawName.equalsIgnoreCase("children"))
    kids = true;
    public void characters(char[] ch, int start, int length) {
    if (parent) {
    System.out.println("Parent: " + new String(ch, start, length));
    parent = false;
    } else if (kids) {
    System.out.println("Children: " + new String(ch, start, length));
    kids = false;
    /** Needed for parent constructor */
    public PeopleHandler( ) throws org.xml.sax.SAXException {
    super( );
    // File people.xml
    <?xml version="1.0"?>
    <people>
    <person>
         <name>Ian Darwin</name>
         <email>http://www.darwinsys.com/</email>
         <country>Canada</country>
    </person>
    <person>
         <name>Another Darwin</name>
         <email type="intranet">afd@node1</email>
         <country>Canada</country>
    </person>
    </people>
    I hope this gives u a better understanding of how SAX parser works..
    Kindly note u need xml.jar and xerces.jar in ur classpath to run above program.
    Regards,
    Nikunj

  • Tomcat and xml files

    public class TestServlet extends HttpServlet
    private static final String CONTENT_TYPE = "text/html; charset=windows-1252";
    public void init(ServletConfig config) throws ServletException
    super.init(config);
    config.getServletContext().getRealPath("students.xml");
    i am getting the following error saying tomcat cant find my xml file in the tomcat bin directory:
    type Status report
    message C:\jakarta-tomcat-4.0.4\bin\students.xml (The system cannot find the file specified)
    description The requested resource (C:\jakarta-tomcat-4.0.4\bin\students.xml (The system cannot find the file specified)) is not available
    what do i have to do to rectify this??

    I recall seeing similar problems. If you only need to read the file, then you could put it in the classpath for the servlet (e.g. WEB-INF/classes) and read it using getResource(). If you need to write it you might have to put it in a well-known location (e.g. new File(System.getProperty("user.home"), ".myconfigdir/students.xml");)

  • Thread death and xml files when analyzing large datasets

    i analyze large data sets. for example:
    4000 persons that each have a time series with 8,000 data points. i do this linearly, so (i think) i am only running the
    *public static void main(String[] args) { .... }*
    for(Person person : PersonSet) {  // there are 4,000 people
      List<Data> data = DataSink.getData();  // each List has a size of 8,000
      analyzer.analyze(person, data); // i do not start any threads in this method
    }i've run into, and over come, java.lang.OutOfMemoryError issues.
    now, my program runs fine for over two minutes, then it crashes and shows this error:
    C:\Documents and Settings\David\My Documents\NetBeansProjects\Test\nbproject\build-impl.xml:419: The following error occurred while executing this line:
    C:\Documents and Settings\David\My Documents\NetBeansProjects\Test\nbproject\build-impl.xml:286: java.lang.ThreadDeath
    this is how i expand memory:
    -Xms1250m -Xmx1250m
    i cannot understand how run-time memory management relates to xml files.?
    my IDE is NetBeans 6.1

    i've never dealt with ANT scripts, so this is like my first "Hello World" programming with ANT.
    yet,
    i can't understand why the jvm would say that the origin of a crash in a program thats be running for over 2-minutes
    would be in an ANT file?
    #more build-impl.xml
        <target name="-init-macrodef-java">
            <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
                <attribute default="${main.class}" name="classname"/>
                <element name="customize" optional="true"/>
                <sequential>
    // line #286                <java classname="@{classname}" dir="${work.dir}" fork="true">   // <--- line #286
                        <jvmarg line="${run.jvmargs}"/>
                        <classpath>
                            <path path="${run.classpath}"/>
                        </classpath>
                        <syspropertyset>
                            <propertyref prefix="run-sys-prop."/>
                            <mapper from="run-sys-prop.*" to="*" type="glob"/>
                        </syspropertyset>
                        <customize/>
                    </java>
                </sequential>
            </macrodef>
        </target>
        <!--
                    =================
                    EXECUTION SECTION
                    =================
                -->
        <target depends="init,compile" description="Run a main class." name="run">
    // line #419        <j2seproject1:java>     // <-- line #419
                <customize>
                    <arg line="${application.args}"/>
                </customize>
            </j2seproject1:java>
        </target>
        <target name="-do-not-recompile">
            <property name="javac.includes.binary" value=""/>
        </target>
        <target depends="init,-do-not-recompile,compile-single" name="run-single">
            <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
            <j2seproject1:java classname="${run.class}"/>
        </target>
    ............................thanks

Maybe you are looking for

  • Time capsule intermittently disconnects

    I have an intermittent problem with my time capsule. I will be working on my Imac G5 and the mail or safari will not load. The connection my then connect to a neighbors network and then I can continue working. Funny thing is that I am still connect w

  • Sharepoint 2013 support for power query

    Hi, I wanted to know whether SharePoint 2013 supports power query and can we refresh power query data from excel services. Thanks, Bhawna.

  • PLS-00302: component 'SET_NO_OUTLINES' must be declared

    Windows 2000 Server Oracle 10.2.0.1 upgraded from 9.2.0.1 IMP-00058: ORACLE error 6550 encountered ORA-06550: line 1, column 33: PLS-00302: component 'SET_NO_OUTLINES' must be declared ORA-06550: line 1, column 7: PL/SQL: Statement ignored IMP-00000:

  • Version 7.2.0 full screen mode does not appear in external display

    I just upgraded to Version 7.2.0. The new full screen mode is fabulous. But, when the video starts, it moves the QuickTime window from my giant, external monitor to my laptop monitor. Is there some way to view video in full screen mode on my external

  • Scan default settings in preview

    Nearly every time, I scan with preview with the same settings. But I don't find a possibility to save my settings as default. Is there no way in no program of the Mac OS (preview, digital images, system settings of printers/scanners)? Thanks for help