Weird results when adding or validating nt:file-Node

Hello,
I'm trying to add the absolute path: /content/2012/201212/20121219_lh_lu_1442.pdf/jcr.content/renditions/original/jcr.content by this code:
Node parentNode = session.getNode("/content");
              Verbose.message(3,"Add node " + folders[folders.length-1]);
        if (session.nodeExists(parentNode.getPath()+"/"+"2012"))  {
            parentNode = session.getNode(parentNode.getPath()+"/"+"2012");
            Verbose.message(3,parentNode.getPath() + " already there");
        else  {
            parentNode = parentNode.addNode("2012", "sling:OrderedFolder");
           Verbose.message(3,parentNode.getPath() + " created");
        if (session.nodeExists(parentNode.getPath()+"/"+"201212"))  {
            parentNode = session.getNode(parentNode.getPath()+"/"+"201212");
            Verbose.message(3,parentNode.getPath() + " already there");
        else  {
            parentNode = parentNode.addNode("201212", "sling:OrderedFolder");
           Verbose.message(3,parentNode.getPath() + " created");
        // dam:Asset-Node named with the PDF-Name
        Verbose.message(3,"Add node 20121219_lh_lu_1442.pdf ");
        if (session.nodeExists(parentNode.getPath()+"/"+"20121219_lh_lu_1442.pdf")  {
            parentNode = session.getNode(parentNode.getPath()+"/"+"20121219_lh_lu_1442.pdf");
            Verbose.message(3,parentNode.getPath() + " already there");
        else  {
            parentNode = parentNode.addNode("20121219_lh_lu_1442.pdf", "dam:Asset");
            Verbose.message(3,parentNode.getPath() + " created");
        // jcr:content
        if (session.nodeExists(parentNode.getPath()+"/"+"jcr.content"))  {
            parentNode = session.getNode(parentNode.getPath()+"/"+"jcr.content");
            Verbose.message(3,parentNode.getPath() + " already there");
        else  {
            parentNode = parentNode.addNode("jcr.content", "dam:AssetContent");
            session.save();
            Verbose.message(3,parentNode.getPath() + " created");
        // metadata
        Node metadata=null;       
        if (session.nodeExists(parentNode.getPath()+"/"+"metadata"))  {
            metadata = session.getNode(parentNode.getPath()+"/"+"metadata");
            Verbose.message(3,metadata.getPath() + " already there");
        else  {
            metadata=parentNode.addNode("metadata", "nt:unstructured");
            session.save();
            Verbose.message(3,metadata.getPath() + " created");
        // renditions
        if (session.nodeExists(parentNode.getPath()+"/"+"renditions"))  {
            parentNode = session.getNode(parentNode.getPath()+"/"+"renditions");
            Verbose.message(3,parentNode.getPath() + " already there");
        else  {
            parentNode = parentNode.addNode("renditions", "nt:folder");
            Verbose.message(3,parentNode.getPath() + " created");
        listChildren("--->", parentNode );
        // orignal
        Verbose.message(3,"Create node " + parentNode.getPath()+"/"+"orignal - Exists=" + session.itemExists(parentNode.getPath()+"/"+"orignal"));
        if (session.nodeExists(parentNode.getPath()+"/"+"orignal"))  {
            parentNode = session.getNode(parentNode.getPath()+"/"+"orignal");
            Verbose.message(3,parentNode.getPath() + " already there");
        else  {
            parentNode = parentNode.addNode("orignal", "nt:file");
            parentNode.addNode("orignal", "nt:file");
            Verbose.message(3,parentNode.getPath() + " created");
        // jcr:content
        Verbose.message(3,"Add node 'jcr.content' to " + parentNode.getPath());
        if (session.nodeExists(parentNode.getPath()+"/"+"jcr.content"))  {
            parentNode = session.getNode(parentNode.getPath()+"/"+"jcr.content");
            Verbose.message(3,parentNode.getPath() + " already there");
        else  {
            parentNode = parentNode.addNode("jcr.content", "nt:resource");           
//            session.save();
            Verbose.message(3,parentNode.getPath() + " created");
        session.save();
        return parentNode.getPath();
    private static void listChildren(String indent, Node node ) throws RepositoryException {
        System.out.println("-->" + indent + node.getName()+ " Exists=" + session.nodeExists(node.getPath()));
        NodeIterator ni = node.getNodes();
        while(ni.hasNext()) {
            Node nextNode=ni.nextNode();
            listChildren(indent+"  ", nextNode);
            String NAME = nextNode.getName();
(Just to avoid irritations; the Verbose class does the logging.)
My program fails in the line "parentNode = parentNode.addNode("orignal", "nt:file");" with the messages:
Okt 29 16:33:14 --- Verbose(3): /content/2012 already there
Okt 29 16:33:14 --- Verbose(3): /content/2012/201212 already there
Okt 29 16:33:14 --- Verbose(3): Add node 20121219_lh_lu_1442.pdf
Okt 29 16:33:14 --- Verbose(3): /content/2012/201212/20121219_lh_lu_1442.pdf already there
Okt 29 16:33:14 --- Verbose(3): /content/2012/201212/20121219_lh_lu_1442.pdf/jcr.content already there
Okt 29 16:33:14 --- Verbose(3): /content/2012/201212/20121219_lh_lu_1442.pdf/jcr.content/metadata already there
Okt 29 16:33:14 --- Verbose(3): /content/2012/201212/20121219_lh_lu_1442.pdf/jcr.content/renditions already there
-->--->renditions Exists=true
-->--->  original Exists=true
-->--->    jcr:content Exists=true
Okt 29 16:33:15 --- Verbose(3): Create node /content/2012/201212/20121219_lh_lu_1442.pdf/jcr.content/renditions/orignal - Exists=false
Exception in thread "main" javax.jcr.nodetype.ConstraintViolationException: no matching child node definition found for {}orignal
    at org.apache.jackrabbit.jcr2spi.nodetype.ItemDefinitionProviderImpl.getQNodeDefinition(ItemDefinitionProviderImpl.java:201)
    at org.apache.jackrabbit.jcr2spi.nodetype.ItemDefinitionProviderImpl.getQNodeDefinition(ItemDefinitionProviderImpl.java:90)
    at org.apache.jackrabbit.jcr2spi.NodeImpl.createNode(NodeImpl.java:1444)
    at org.apache.jackrabbit.jcr2spi.NodeImpl.addNode(NodeImpl.java:187)
    at com.lsy.test.lnnreader.lufthanseat.CRXrepository.addArchiveFolder(CRXrepository.java:120)
I've no idea, why this program fails. The node ../original is already there; have added it with CRXDE Explorer. Saving there didn't work before adding jcr.content with the property "jcr:data". But now you can see that there is a difference in the validating the existence of the relative path "original" in the ongoing routine (results in "Exists=false") and in the "listChildren-method" called immediately after validating the "renditions". This routines results in "Exists=true" for the node "original".
So I've got two questions left: What do I need to do to add the node with the WebDAV-Connected program and how can I make sure it recognizes correctly the existence of a node
best regards,
Ulrich

I am not sure why you have used addNode method on same parentNode two times (line by line) because you already have added node in first line and now you have to save it. May be this is causing issue.
parentNode = parentNode.addNode("orignal", "nt:file"); 
parentNode.addNode("orignal", "nt:file");
let me know if it does not help you.

Similar Messages

  • ASO MDX IsLevel weirds result when a parent with only a child

    Hi,
    I am using the function IsLevel but I find funny results when I apply it with a parent member with only a child.
    The result of the function is the level of the child
    I am doing it in Essbase 11.1.2.2
    Has anyone had the same issue?

    Hi Tim,
    It is true, it is an implied share issue.
    With the parent as never share works.
    I don't remember that it happens with BSO, not with the attributes of the members (level, generation, UDA).

  • When adding an attachment, the files I see in the finder-screen are not up to date

    I want to attach a file to a new message. When I attach it via the button in het message-screen a finder screen will open. The files in here are not up to date. For example, a just added file is not visible. When I brouwse to the same folder by using the Finder itself at this time I will see the up-to-date files and can add them to the message by using drag and drop. So, I have found a solution but I still think this is a bug.
    See both screenshots, one is the folder "3 metingen" in the Thunderbird finder screen. the second is the same shown in Finder. More and accuate files are visible in Finder.
    Thanks for your time.
    Rogier.

    Both are OSX windows. Thunderbird just asks the operating system to open a windows of that type, so why the operating system would offer up such weirdness I have no idea. Under windows F5 forces and update, I wonder if it does on OSX?

  • Weird results when using prompt

    I have created a report in answers. When using a normal filter condition I get one set of results. When using a prompt with the same criteria and no filter I get no results! I played around with removing/adding certain columns (all from the same subject area and same underlying physical table ie no joins involved) and answers sometimes returns results and sometimes not, depending which columns I have added into the query! We are running OBI SE1 on windows 10.1.3.2.1 (Build 070411.1900) - has anyone come across a similar problem? I fear it may be a bug in the OBI software but couldn't find anything on metalink.

    Hi Hurtn
    Can you paste the Query Log?
    Sunil S Ranka
    Blog :: http://sranka.wordpress.com
    "Superior BI is the antidote to Business Failure"

  • Weird error when adding a transition to gif...

    I keep getting the error below. All I'm doing is trying to
    add a transition to a .gif file. I've tried converting it to a
    graphic , movie clip, etc and I still get the same thing. Any idea
    why its doing this?
    Exception in forward: TypeError: myCurrentFrame has no
    properties
    Error opening URL 'file:///C|/Documents and
    Settings/Compaq_Administrator/Local Settings/Application
    Data/Adobe/Flash CS3/en/Configuration/preview1.swf'
    Exception in reverse: TypeError: tmpFrame has no properties

    Well I imported the gif to the stage and added the transition
    fine. No problems so far. I go on adding some more content to my
    movie clip and come back later and delete the gif with the
    transition. I then add the original gif into the movie and try to
    put a transition to it and thats when I get the error. It also
    won't show a preview of my gif either in the window that you add
    transitions and such.

  • Firefox stall and crash when adding or downloading any files

    Firefox will stall and crash after attempting to add or download any kind of files. I have also note that when highlighted the words in the boxes under the top of the screen menus File, Edit, Tools and Help will look like frayed, this will not happen with the menus View, History and Bookmarks where the words are solid and clear.
    I recently reinstalled Firefox and the program has created a Old Firefox Data in my desktop.
    The last version I had +/- two years was also having a similar problem plus a total freeze and crash by going to Options, which does not happen anymore.
    Firefox 22
    Windows XP Media Center Edition SP3

    Although always very conscious of security in my pc, two years ago I have a bug trying to do some damage in this system. After some fight and the help of some online scanners, TDSSKiller and even Combo Fix, I tough I got ready of the problem; nevertheless I have to deleted Firefox because maybe it was compromise beyond the point of fixing.
    This days find me reinstalling Firefox, I thought that furthers updates will have work for a stronger program and a clean running.
    I have always like Firefox way above any other browser; is not as intrusive as others and reacts fairly fast (plus give me more options that the main stream and corporate ones).
    This computer runs now with:
    AVG Antivirus Free Edition 2013,
    Spybot w/ Tea Timer (for the registry),
    SuperAntiSpyware,
    Malwarebites' Anti-Malware,
    Windows Defender,
    Zone Alarm (for firewall)
    I try to run them often, even in safe mode when possible.
    Ideato, if you are sure this is a malware related issue I will do as suggested at the end of this article that you point out (Troubleshoot Firefox issues caused by malware) and go to see the Pros at Bleeping Computer Forums, once they are sure I don't have anything of risk I come back here for the follow up.
    What you think?
    Thanks, and thanks David too...

  • OBIEE 10g Getting wrong results when adding calculated columns to a report

    Hi,
    I'm experiencing a possible misbehaviour with OBIEE 10g (10.1.3.4.1).
    I have a simple report with a table. Columns are simply selected from dimensions and facts. In this case the generated query is:
    WITH
    SAWITH0 AS (select sum(T30604.TOTAL_TIME) as c1,
    sum(T30604.MATERIALS_QTT_COST) as c2,
    sum(T30604.AMNT) as c3,
    sum(T30604.QNTY) as c4,
    T30622.BRANCH_CODE as c5,
    T25064.SRP1_CODE as c6,
    T25064.SRP1_DESC as c7,
    T25064.SRP2_CODE as c8
    from
    THK_BRANCHES T30622,
    THK_ITEMS T25064,
    THK_INVENTORY_TRANSACTIONS T30604
    where ( T25064.ITEM_ID = T30604.ITEM_ID and T30604.BRANCH_ID = T30622.BRANCH_ID )
    group by T25064.SRP1_CODE, T25064.SRP1_DESC, T25064.SRP2_CODE, T30622.BRANCH_CODE)
    select distinct SAWITH0.c5 as c1,
    SAWITH0.c6 as c2,
    SAWITH0.c7 as c3,
    SAWITH0.c8 as c4,
    SAWITH0.c4 as c5,
    SAWITH0.c3 as c6,
    SAWITH0.c2 as c7,
    SAWITH0.c1 as c8,
    SAWITH0.c4 as c9,
    SAWITH0.c3 as c10,
    SAWITH0.c2 as c11,
    SAWITH0.c1 as c12,
    SAWITH0.c4 as c13,
    SAWITH0.c3 as c14,
    SAWITH0.c2 as c15,
    SAWITH0.c1 as c16,
    SAWITH0.c4 as c17,
    SAWITH0.c3 as c18,
    SAWITH0.c2 as c19,
    SAWITH0.c1 as c20
    from
    SAWITH0
    Results of this report / query are correct.
    I then add a simple calculation (subtraction between two fields). The generated query is:
    WITH
    SAWITH0 AS (select sum(T30604.MATERIALS_QTT_COST) as c1,
    sum(T30604.AMNT) as c2,
    T30622.BRANCH_CODE as c3,
    T25064.SRP1_CODE as c6,
    T25064.SRP1_DESC as c7,
    sum(T30604.TOTAL_TIME) as c8,
    sum(T30604.QNTY) as c11,
    T25064.SRP2_CODE as c12
    from
    THK_BRANCHES T30622,
    THK_ITEMS T25064,
    THK_INVENTORY_TRANSACTIONS T30604
    where ( T25064.ITEM_ID = T30604.ITEM_ID and T30604.BRANCH_ID = T30622.BRANCH_ID )
    group by T25064.SRP1_CODE, T25064.SRP1_DESC, T25064.SRP2_CODE, T30622.BRANCH_CODE),
    SAWITH1 AS (select D1.c1 as c1,
    D1.c2 as c2,
    D1.c3 as c3,
    D1.c4 as c4,
    D1.c5 as c5,
    D1.c6 as c6,
    D1.c7 as c7,
    D1.c8 as c8,
    D1.c9 as c9,
    D1.c10 as c10,
    D1.c11 as c11,
    D1.c12 as c12
    from
    (select sum(SAWITH0.c1) over (partition by SAWITH0.c3) as c1,
    sum(SAWITH0.c2) over (partition by SAWITH0.c3) as c2,
    SAWITH0.c3 as c3,
    sum(SAWITH0.c1) over (partition by SAWITH0.c6, SAWITH0.c3) as c4,
    sum(SAWITH0.c2) over (partition by SAWITH0.c6, SAWITH0.c3) as c5,
    SAWITH0.c6 as c6,
    SAWITH0.c7 as c7,
    sum(SAWITH0.c8) over (partition by SAWITH0.c6, SAWITH0.c12, SAWITH0.c3) as c8,
    sum(SAWITH0.c1) over (partition by SAWITH0.c6, SAWITH0.c12, SAWITH0.c3) as c9,
    sum(SAWITH0.c2) over (partition by SAWITH0.c6, SAWITH0.c12, SAWITH0.c3) as c10,
    sum(SAWITH0.c11) over (partition by SAWITH0.c6, SAWITH0.c12, SAWITH0.c3) as c11,
    SAWITH0.c12 as c12,
    ROW_NUMBER() OVER (PARTITION BY SAWITH0.c3, SAWITH0.c12 ORDER BY SAWITH0.c3 ASC, SAWITH0.c12 ASC) as c13
    from
    SAWITH0
    ) D1
    where ( D1.c13 = 1 ) ),
    SAWITH2 AS (select sum(T30604.MATERIALS_QTT_COST) as c1,
    sum(T30604.AMNT) as c2
    from
    THK_INVENTORY_TRANSACTIONS T30604)
    select SAWITH1.c3 as c1,
    SAWITH1.c6 as c2,
    SAWITH1.c7 as c3,
    SAWITH1.c12 as c4,
    SAWITH1.c11 as c5,
    SAWITH1.c10 as c6,
    SAWITH1.c9 as c7,
    SAWITH1.c8 as c8,
    SAWITH1.c10 - SAWITH1.c9 as c9,
    SAWITH1.c11 as c10,
    SAWITH1.c10 as c11,
    SAWITH1.c9 as c12,
    SAWITH1.c8 as c13,
    SAWITH1.c11 as c15,
    SAWITH1.c10 as c16,
    SAWITH1.c9 as c17,
    SAWITH1.c8 as c18,
    SAWITH1.c11 as c20,
    SAWITH1.c10 as c21,
    SAWITH1.c9 as c22,
    SAWITH1.c8 as c23,
    SAWITH1.c5 as c26,
    SAWITH1.c4 as c27,
    SAWITH1.c2 as c28,
    SAWITH1.c1 as c29,
    SAWITH2.c2 as c30,
    SAWITH2.c1 as c31
    from
    SAWITH1,
    SAWITH2
    Results of this report / query are wrong: it seems as if some rows "disappear".
    If I delete the filter in SAWITH1 query above ( D1.c13 = 1 ) results are correct.
    Anyone experiencing the same problem? The strange thing is that I have a number of similar reports (on other subject areas) and everyting is working fine.
    Please also note that I don't want to add this kind of calculated items in the RPD (they can be simple calculations that are made on-the-fly).
    Any help would be greatly appreciated.
    Thanks a lot and regards,
    Cristina

    I have the same issue, everything OBIEE server generate query using ROW_NUMBER() over () function, it will hardcode Dx.cx = 1, this will cause issue if you have rows of the same distinct value, thus causing missing rows and the final results will be wrong.
    I have open a SR with Oracle Support since March 2011, but till today, they have not resolve the issue yet.
    Hope they solve the issue soon.
    Best Regards
    KT

  • Error messages when submitting a validated RSS feed URL to iTS.

    Why do I keep getting error messages when submitting a validated RSS feed URL to iTS. Feed is http://streaming.integrationworks.com:3000/archive/feed2.xml
    I get variations on the follwoing message: "We had difficulty reading this feed. Bad http result code: 504"
    I validated this file at http://www.feedvalidator.org/. I am able to manually place it in iTunes (Open Stream) and download episodes. I can paste the URL in my browser and retrieve an RSS feed page.
    Any ideas?
    Rick

    You have to remember that when subscribing manually, it's only your iTunes application which is doing this - the Store is not involved at all. When submitting, the Store software checks the feed as a technical check before its assessed for content by humans; but how this is done and what sort of call is made to the server is another of Apple's dark secrets.
    You're the third with a similar situation in the last couple of days, and I've seen this arise before: though the specific message about a proxy server is unique to you. (A proxy server would act as an intermediary - anyone accessing the feed would ask the proxy for it, and the proxy would retrieve it from the actual server and pass it back, masking the original server's URL in the process. Whether this is actually what is going on is obviously something only your server technicians can say - and then there's the question of what is different about a request from the iTunes Store.)
    If all else fails you could place the feed on another server and try again - you could do this and leave the episode media files where they are, they don't have to be on the same server as the feed, as long as the server in question can handle 'byte-range requests' (which is a quite separate can of digital worms).

  • Variable Definitions - weird results

    Using Flash8 I am getting some weird results when defining
    variables.
    In my Actionscripts I am trying to define and assign
    variables on the same line and then trace it as below :
    var light_critical_colour:String = "#FF0000";
    trace ("light_critical_colour = " + light_critical_colour);
    If I create an new blank fla file and place this in the first
    frame, scene 1, it works as you would expect and opens a trace
    window and returns "light_critical_colour = #FF0000". Also if I
    remove the first line then the result is "light_critical_colour =
    undefined" again as expected.
    My issue is that I have another fla file which i have created
    from scratch as per the example above. I have 2 scenes, scene 1 is
    the preloader and scene 2 is the main user screen. It does not
    matter where I place the code even in the the first frame of scene
    1, the var definition seems to be ignored and if I remove the var
    definition line and just have "trace ("light_critical_colour = " +
    light_critical_colour);" I get "light_critical_colour =" rather
    than "light_critical_colour = undefined" as expected.
    Does anyone have any idea's ?
    Thanks

    More Information:
    I have managed to get around this by cutting and pasting my
    ActionScript and objects into a new fla and its now working fine.
    If I was not such a ActionScript newbee I would suggest that
    this is a Flash8 bug !
    This sure managed to waste lots of my time.........

  • Weird things happening when adding files to library

    OK so I just update to the newest itunes, so I am all up to date. My problem is that when I go to add files to the library from a folder on the harddrive, nothing happens. I hold down the shift key and select the songs in the folder I want to add, but it will not add them unless you manualy add EACH FILE one by one!
    So I tried to just add the whole folder, but when I do that, it adds each song twice for some reason, so then I have to go through and manualy delete all the duplicates.
    This has NEVER been a problem until tonight, if someone has a tip please tell me! I am also getting annoyed with the whole determing gapless playback thing, if someone has a tip to get rid of that, that would also be great. Thanks!

    I looked over at Dougscripts.com but didn't find anything.
    I think the best you can do is use the comment field for your dates.
    http://dougscripts.com/itunes/scripts/ss.php?sp=appenddate
    Matt

  • Moving from Bridge to Lightroom, when adding existing files on hard drive, will metadata transfer? Should I choose embed sidecar in file handling or will it automatically happen if I choose standard?

    Moving from Bridge to Lightroom. Will metadata in existing files be recognized by Lightroom, and should I select embed+sidecar when adding files to library for the first time.

    Thanks guys, appreciate the feedback.
    CHRIS - you are exactly right about my FUTURE workflow. What I'm trying to figure out now is how to best handle images already processed. My import should be OK based on the way I have duplicates in separate directories, BUT I'm wondering how to avoid seeing all of these duplicates in LR when I search by keyword, etc.? I guess I can somehow flag the RAW files and only get them in my results.
    One question though - Stacks, etc. sounds great for the LR processed images. But what about variations based on processing in Photoshop after the LR Develop stage? I guess in this case I will just have to keep duplicate images if I have multiple versions from my PS work?
    ISAAC - Thanks for clarifying that LR will recognize my XMP files from Bridge. What about the opposite direction . . . if I edit something in LR and capture this via XMP, it won't prohibit Bridge from recognizing XMP info if I access a file via Bridge, will it?
    ALSO - Do you know where I can find info about tracking via XMP vs. the central database? You mentioned a couple of valid points, but I'm not sure I have a full handle on the pros/cons of these options.
    Thanks!
    Mark

  • I downloaded the PSD trial. Worked in it. Saved my file.  Now when I try to open it it says "not a valid photoshop file"

    I downloaded the PSD trial. Worked in it. Saved my file.  Now when I try to open it it says "not a valid photoshop file"

    That depends on why it won't open.  Most of the time it means the file is corrupted and unlikely to be recovered. If you saved it right after adding or copying a LOT of layers - then it might just be the layer limit and we can attempt to recover it.

  • Forms not appearing in Response file when added and no preview

    One of my users has a form created with Adobe LiveCycle ES 8.2 and has been using it happily for the last 12 months up until about a month ago. The problem is when she receives the responses via email and double clicks on the attached PDF, it says it has been added to the response file and the total responses count goes up by one but you cannot see the response in the list.
    She also says that other times the total count goes down when a response is added and again you cannot see the reponse in the list. A further problem is that when you Dbl-click a response in the list, you don't get a preview of the form you just get a blank window. I at first thought this may be a corruption but we did a restore of the file from a month before this started happening and we get the same result with that file.
    I tried opening this file on another PC which had Acrobat 9.0 Pro but I get the same result. There are no filters applied and I have played with every view setting I could find to no avail. Any help/ideas would be greatly appreciated.
    Carl

    I apologise if my comments sounded too harsh.  I work for a lot of corporations and quasi government departments.  I have to work with "web teams" all the time and they're a very mixed bag.  Some are up with the technology and can actually be creative.  Others consist of people that were just plain unemployable but the company couldn't let them go without incurring union wrath, so they dump them in the "web team".
    If Accessibility is what they want, Captivate has very strong features in this area.  Certainly better than any other e-learning tool I've seen.  You turn these on by selecting the Accessibility checkbox under Preferences.
    If you don't like my idea of using Rollover Captions for ALT text, you can simply add accessibility text to any image on screen by selecting the image and clicking the Accessibility button.
    Then in the dialog that pops up, you just untick the checkbox for automatic text (based on the name of the object) and add in your own like this:
    You need to remember that with 508 compliance there are a number of levels.  You need to determine which level your organisation is aiming for and keep it practical or else you will end up with a lot of extra unnecessary expense and time wasting.  Lower levels of accessibility are very achievable.  As you move further up the levels it becomes increasingly impossible to deliver anything that isn't plain text.  In some cases, accessibility taken to the max would require you to build several different versions of your courseware.
    If you Web Team expects you to go to the n.th degree in Accessibility, ask them to confirm exactly who's going to pay for it.

  • How is the Login-validation.xml file is called when we do the validation i

    Hi ^^,
    please forgive me if I am a big long while explaining.
    when you are using the struts 2.0 the web.xml has a welcome-file-list. I have put index.html in that list so it pulls up first.
    It has the following tag
    <ul>
              <li><a href="roseindia/showLoginClientSideValidation.action">Login Application (Client Side Validation)</a></li>
            </ul>so this maps to struts.xml which contains the showLoginClientSideValidation.action tag
    <action name="showLoginClientSideValidation">
                   <result>/pages/loginClientSideValidation.jsp</result>
            </action>
            <action name="doLoginClientSideValidation" class="net.roseindia.Login">
                <result  name="input">/pages/loginClientSideValidation.jsp</result>
                   <result  name="error">/pages/loginClientSideValidation.jsp</result>
                   <result>/pages/Loginsuccess.jsp</result>
            </action>
              this displays the jsp "loginClientSideValidation.jsp"
    once you enter the details in the jsp and click submit the control goes to Login.java file as per the mapping in struts.xml given above
    This is just a simple java file which contains the execute() method. This method returns success or error.
    If success is returned then the Loginsuccess.jsp is invoked
    If error is returned then the loginClientSideValidation.jsp is invoked
    Well so far so good
    I have also understood that to use client side validation you use validate = "true" in loginClientSideValidation.jsp
    However what I am not able to understand is how the Login-validation.xml file is being invoked
    Any help would be highly appreciated.
    thanks and regards,

    Hi ^^^,
    i found something interesting that I want to share
    Validation rules are handled by validators, which must be registered with the ValidatorFactory (using the registerValidator method). The simplest way to do so is to add a file name validators.xml in the root of the classpath (/WEB-INF/classes) that declares all the validators you intend to use.
    validators.xml if being defined should be available in the classpath. However this is not necessary, if no custom validator is needed. Webwork will automatically picked up a predefined sets of validators defined in com/opensymphony/xwork/validator/validators/default.xml packaged together in xwork jar file that comes with webwork distribution.
    So this is clear that the validators are defined in validators.xml or default.xml
    What is still not clear is how is the Login-validation.xml being called by jsp page to do verification and then linking to validators.xml to apply the rules.
    However people have been telling me that ----" Struts 2.0 have inbuilt functionalities to validate the Parameters" and that i need to
    "Define configuration file *-validation.xml or use annotations
    i) className-validation.xml
    ii) place this file in the directory where .class file is placed example.Login should have Login-validation.xml
    Do you all think is this sufficient for an answer or should my search go on?
    thanks and regards,
    Prashant
    Edited by: pksingh79 on Sep 13, 2008 10:08 AM

  • When adding ringtones (created by ringtone app) they show in music tab nor tones. the file type in 'get info' is 'ringtone'. Why is this?

    When adding ringtones (created by ringtone app) they show in music tab nor tones. the file type in 'get info' is 'ringtone'. Why dont they display in the 'tones' tab in itunes?  How can I get them to display under 'tones' not 'music'.

    Well, I tried rebuilding the Launch services with the command listed but still no luck. After having no luck with that and deleting caches, etc....I also, went to my home (user) directory and in Preferences, I deleted the com.apple.launchservices.plist file. I restarted and checked and still the same result.
    Also, I want to emphasize again that the file type I am discussing DOES actually launch with the correct application. (Cubase files in my example).
    But it is just annoying that ALL of my Cubase files display the Pro Tools application icon, and in Get Info they are listed to open with Pro Tools. But they actually do launch Cubase if double clicked.
    And one other VITAL note....if I open Get Info for one of these files, and change the Open With from Pro Tools to Cubase....then that choice DOES "stick" and retain. (if I "don't" also click Change All)
    It's only when I click "Change All" that it DOESN'T stick and the list selection jumps back to Pro Tools. I hope that may offer some clarity.
    Thanks for the tips but I am still back at square one.
    Wade

Maybe you are looking for

  • New AirPort Extreme w/ Time Machine disk crashes every few days

    I bought an AirPort Extreme base station about a month ago. It's currently in bridge mode, connected to my U-Verse residential gateway, and has a 1 TB hard drive attached to it that I use for Time Machine backups. The drive is formatted HFS+ and both

  • TableModel with 'getRowClass()' instead of 'getColumnClass()'

    Folks, I have a JTable with only a header and 2 rows. The first row should display String-info and the second should have checkboxes (Holds Boolean objects).. the problem is the TableModel interface only has a method for the column-class and that won

  • Problem selecting linked images in CS5

    Just changed to InDesign CS5 and find, on working on a document created in CS4, I can't select images (which were links created inPhotoshop). The only things I can select are objects that I had created in InDesign itself. Why?

  • Running  sql scripts from different directory

    Hi I have sql scripts in different directories as follows: D:\myapp\sql - load.sql - init.sql D:\myapp\sql\schema -users.sql -structure.sql D:\myapp\sql\populate\ - data1.sql - data2/sql load.sql call all the other scripts as below: @init.sql @schema

  • Duplication of source system

    Hello, We have one BW dev  (BWD) system connected with one R3 Dev system (DEV). We have just created one quality system for R3 (QUA) as a copy of DEV and connected to our BWD. So now I need to recreate all the connections for datasources etc. Since t