Should I use the .do or .uix file as the destination attribute on a link?

Good Morning all,
What is the difference in using the .do action file or the .uix file as the destination attribute on a link? Is one preferred over the other? Any clairification would be helpful.
Thank you

I've spent considerable time on this myself but from the perspective of a GO vs. a link. Why the difference and what do we gain?
You really need to understand Struts. I am just beginning to. The stuff that comes with 10g on Struts is the tip of the iceberg. I picked up an O'Reilly book (Jakarta Struts) which actually addresses why one should use an action reference vs a direct link to a page (UIX JSP or otherwise). There are many other useful discussions on the MVC and Struts' place in it.
Briefly, a link to a UIX page bypasses the controller aspect of Struts and you forfeit the opportunity for extensions/customizations etc and basically violate the MVC blueprint (See sun.com).
My issue was why do I have to do a DataAction and a forward (as all the Oracle collateral would have you do)when I just need to go directly to a page?
Struts has a class (org.apache.struts.actions.forwardAction) that allows you to do just that without violating the MVC rules and without having to create all the extra actions and forwards when you just want to go to a page without a DataAction.
Get the book, well worth the $ vs the frustration.
Hope this helps somewhat.
Tom

Similar Messages

  • Jdev11G XMLMenuModel : Setting the "destination" attribute for the itemNode

    Hi,
    I am trying to set the "destination" attribute for the itemNode in the metadata.xml.This is the URI to which the user must be taken on clicking that node. But it is unable to pick the URI set for the destination attribute and hence there is no navigation that happens.Using the "action" attribute works fine. But I need to use the "destination" attribute.
    Here are some of the files:
    The metadata.xml (root_menu.xml):
    <?xml version="1.0" encoding="windows-1252" ?>
    <menu xmlns="http://myfaces.apache.org/trinidad/menu">
    <groupNode id="groupNode1" idref="itemNode1" label="Merchant">
    <itemNode id="itemNode1" label="Sites" action="site_action" rendered="#{testBean.test}"
    focusViewId="/common/site/Site.jspx">
    </itemNode>
    <groupNode id="groupNode2" idref="itemNode2" label="Settings">
    <itemNode id="itemNode2" label="Page Template" action="template_action"
    focusViewId="/common/template/TemplateRules.jspx">
    </itemNode>
    <itemNode id="itemNode3" label="Configuration Parameters" destination="http://www.google.com"
    action="config_action" focusViewId="/common/others/ConfigurationParameters.jspx">
    </itemNode>
    </groupNode>
    <groupNode id="groupNode3" idref="itemNode4" label="System Admin">
    <itemNode id="itemNode4" label="Cache Invalidation" destination="/faces/common/others/CacheInvalidation.jspx"
    focusViewId="/common/others/CacheInvalidation.jspx">
    </itemNode>
    </groupNode>
    </groupNode>
    </menu>
    The faces_config.xml:
    <?xml version="1.0" encoding="windows-1252"?>
    <faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee">
    <application>
    <default-render-kit-id>oracle.adf.rich</default-render-kit-id>
    </application>
    <navigation-rule>
    <navigation-case>
    <from-outcome>site_action</from-outcome>
    <to-view-id>/common/site/Site.jspx</to-view-id>
    </navigation-case>
    <navigation-case>
    <from-outcome>template_action</from-outcome>
    <to-view-id>/common/template/TemplateRules.jspx</to-view-id>
    </navigation-case>
    <navigation-case>
    <from-outcome>config_action</from-outcome>
    <to-view-id>/common/others/ConfigurationParameters.jspx</to-view-id>
    </navigation-case>
    <navigation-case>
    <from-outcome>cache_action</from-outcome>
    <to-view-id>/common/others/CacheInvalidation.jspx</to-view-id>
    </navigation-case>
    </navigation-rule>
    <managed-bean>
    <managed-bean-name>root_menu</managed-bean-name>
    <managed-bean-class>org.apache.myfaces.trinidad.model.XMLMenuModel</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    <managed-property>
    <property-name>createHiddenNodes</property-name>
    <value>false</value>
    </managed-property>
    <managed-property>
    <property-name>source</property-name>
    <property-class>java.lang.String</property-class>
    <value>/WEB-INF/root_menu.xml</value>
    </managed-property>
    </managed-bean>
    <managed-bean>
    <managed-bean-name>testBean</managed-bean-name>
    <managed-bean-class>testBean</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    </faces-config>
    Can you please tell me what else has to be set for the "destination" attribute to work?
    Thanks,
    Swapna

    The code you sent is not clear, could you send your jspx page.
    Thanks

  • We have 4 iphones in our family and an Ipad.  When we purchase music I would like for the entire family to be able to use it.  Should each of us use a different apple account or should we use the same one.

    We have 4 iphones and an Ipad in our family. When we purchase music, I would like for the entire family to be able to use it and then back it up to Icloud. What is the best and cheapest way for this to happen.  Should we all have a different apple id or should we use the same one.

    You will all need to be on the same itunes account ID.
    You can however all have seperate icloud accounts aswel.

  • I have an apple id for my ipod touch at home. My company is planning to issuing Ipads. Should I use the same apple id on the ipad for those apps I purchase and would like to purchase and use on my work ipad?

    I have an apple id for my ipod touch at home. My company is planning to issuing Ipads. Should I use the same apple id on the ipad for those apps I purchase and would like to use on my work ipad?

    Yes, otherwise you will have to pay for those apps again. If an app is purchased by one Apple ID, he/she will be able to redownload it again for no cost (note: this does apply to songs, but NOT to movies).

  • Should I use the fine-grained auditing?

    I need to record the changes (of data) made to serveral tables by users. For example, I have to check the before and after images of the changes and what kind of transactions they do to cause the changes. Sould I program the logging procedure in the application or should I use the fine-grained auditing function of oracle to do it. I am not sure what this built-in function can do for me. Can anyone give me some advice on this? Thks.
    A beginner

    Why Fine-Grained Auditing?
    You may want to check standard auditing if it is suitable for you
    http://download.oracle.com/docs/cd/B19306_01/network.102/b14266/cfgaudit.htm#BABCFIHB
    I don't think you can get pre and post update values of the affected data with Auditing.
    FGA is useful when you want to audit just a "subset" of the data in the table.
    (for instance, audit everyone that wants to get all records from EMP table where SALARY > 100000)
    Message was edited by:
    tekicora

  • Should i use the same pass words on my macbook that i use on my ipad?

    HI...I have 2 questions...I am thinking about buying a macbook pro and when I set it up...should I use the same apple ID as I use on my ipad?
    Then...does the macbook pro have Java and Flash Player so I can play all the Pogo games?

    You should use the same Apple ID. The same Apple ID must be used in all your devices in order to sync data through iCloud and get the purchases you make in all your devices, for example. Also, you can register your devices to your Apple ID, receiving a better support if you have any problem.
    The MacBook Pro is compatible with Java and Flash Player, but it doesn't come with them preinstalled. To install Flash, visit the Adobe site > http://get.adobe.com/flashplayer Respecting to Java, OS X will ask you to install it when you want to play Java content

  • My 2011 MBP has begun running slow with frequent 'spinning beach ball' events. I'm running Yosemite and wondered if I should of use the original install disk for maintenance.

    My 2011 MBP has begun running slow with frequent 'spinning beach ball' events. I'm running Yosemite and wondered if I should of use the original install disk for a maintenance reinstall. I presume I'd have to download Yosemite again, though I'd be happy just using Snow Leopard again too.
    Thanks for the help.

    When you see a beachball cursor or the slowness is especially bad, note the exact time: hour, minute, second.  
    These instructions must be carried out as an administrator. If you have only one user account, you are the administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    The title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen.
    Each message in the log begins with the date and time when it was entered. Scroll back to the time you noted above.
    Select the messages entered from then until the end of the episode, or until they start to repeat, whichever comes first.
    Copy the messages to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    The log contains a vast amount of information, almost all of it useless for solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    Some private information, such as your name, may appear in the log. Anonymize before posting.

  • When Should I use the Inner Classes ?

    When Should I use the Inner Classes ?
    What is the advantage(s) and the disadvantage(s) ?

    When I use innerclasses?
    1) Allmost allways when I need simple owner child behavior.
    2) When I need a behaviour, that is quite small, and used only once, I make it anonymous inner class. For example specialised streams and threads.
    3) Enumerations

  • Which situation should we use the text item with the item category TATX

    Dear experts!
    Thank you for your attention!
    I am confused with text item (TATX).
    which situation should we use the text item with the item category TATX????
    Someone told me that the text item is dummy and should be used as a manual of certain standard item. But the manual may be a book or several papers and it also takes up some inventory not a dummy.
    So, could some body tell me what the text item (TATX) exact is and what function it has.
    Best regard!
    Tangdark

    Hi,
    you can use TATX if you like to enter a text and to print some information between the item lines.
    Regards
    William

  • When should I use the power adapter?

    I just installed a wireless router. Should I use the power adapter when I'm not going to use the Macbook for several hours? Does the Macbook drain the battery when it is shut down or sleeping?

    When should I use the power adapter?
    Whenever you are near a power outlet. Not 100% of the time, of course (you have to flex the battery sometimes) but as often as possible.
    Should I use the power adapter when I'm not going to use the Macbook for several hours?
    If you are near an outlet, yes.
    Does the Macbook drain the battery when it is shut down or sleeping?
    When sleeping, it drains a negligible amount.
    Further reading:
    http://support.apple.com/kb/HT1446
    http://support.apple.com/kb/HT1490

  • MOVED: [Athlon64] Should I use the 24 pin PSU converter ?

    This topic has been moved to AMD64 nVidia Based board.
    [Athlon64] Should I use the 24 pin PSU converter ?

    I've heard that most 24 pin boards run just fine with just the 20 pin plug... just has long as your PSU has enough amps on the 12v for proper function. Might be a different story if you have a fully populated SLI setup though.
    I don't see why they wouldn't as most new PSU's come with a plug that is essentially a 20 pin that just has a detachable 4 pin add on. Of course if you need the PCI-e power plugs and don't have any adapters for those, you may as well upgrade anyhow.

  • I have an Ipad first generation with IOS 5.1.1. and I have just got a new ipad mini. Should I use the back up of the old Ipad from Itunes copy to configure the new one, or it is better to configure the new one from scratch?

    I have an Ipad first generation with IOS 5.1.1. and I have just got a new ipad mini. Should I use the back up copy of the old Ipad from Itunes to configure the new one, or it is better to configure the new one from scratch?

    Contrary to the opinion above, I see no reason whatsoever why you can't set up the new iPad from the backup of the old one. Obviously you will have app updates to make and complete and that sort of thing, but if you want to retain all of your app data and device settings (some of which will change because of the updated iOS), I would certainly restore from the backup first.
    If you find that to be problematic, you can always start all over again.

  • Error occurred in deployment step 'Add Solution': A feature with ID '' has already been installed in this farm. Use the force attribute to explicitly re-install the feature.

    Hi I am getting the error
    Error occurred in deployment step 'Add Solution': A feature with ID 10495515-2482-41fd-98eb-3c87f739f54b has already been installed in this farm.  Use the force attribute to explicitly re-install the feature.
    when trying to deploy web parts
    question 1 - how do i use the force attribute when deploying from visual studio
    question 2 - am i deplying it to the right place, if i deply it to the
    url:port that points to my central admin tool it deploys but i cant seem to see it in any of my webs in my site collection, if i deploy it to the
    url:port that points to my site collection I get this error.
    im new to all this by the way :)
    thanks in advance

    If you are deploying from Visual Studio then please follow this post:
    http://sharepointfordeveloper.blogspot.com/2014/03/solved-visual-studio-issue-error.html
    Open the visual Studio and navigate to the feature XML file and add the bellow attribute.
    AlwaysForceInstall="TRUE"
    The <FeatureName>.Template.Xml output would be some think link this.
    <?xml
    version="1.0"
    encoding="utf-8"
    ?><Feature
    xmlns="http://schemas.microsoft.com/sharepoint/"
    AlwaysForceInstall="TRUE"></Feature>

  • Feature with ID 15/.. has already been installed. Use the force attribute to explicitly re-install the feature

    Hi everyone,
    I really become desperate with this one. I know, it's mentioned hundred times in the web, and it really works when you use a force deployment, but my simple question is: Why?
    To explain my issue: We have several SharePoint 2010 solutions which we want to deploy to SharePoint 2013 with Visual Studio 2012 running on Windows Server 2012. Site solutions work. But farm solutions just don't. I get the error (you
    guessed it): A feature with ID 15/... has already been installed in this farm. Use the force attribute to explicitly re-install the feature.
    And it does really work with the force attribute, but why on earth do you have to use the force flag? Something has to be different, and if there is an already installed feature with this ID, then why can Visual Studio not uninstall or
    deactivate it by itself first? This error never occurred with SharePoint 2010 and VS2012, although features are already installed. 
    Thanks a lot for your effort.
    Best regards,
    Patrick

    Hi Check this
    1.Double click on the feature.... ( or right click and choose properties)
    2.then in the properties window make
    3. ALWAYS FORCE INSTALL = false... (this should be false)
    Manoj Gangwar | Sharepoint MCPD | Sharepoint MCTS |

  • How to get cm:search to use the max attribute when creating the SQL query?

    When we use the max attribute in the cm:search tag, it does not seem to honor the max attribute when creating the SQL query. However, the result returned from the tag is limited to the number specified by the max attribute. Then the tag seems to work as intended, but the performance will be sub optimal when the SQL query returns unnecessary rows to the application.
    We use the cm:search tag to list the latest news (ordered by date), and with the current implementation we have to expect a decrease in performance over time as more news is published. But we can’t live with that. We need to do the constraint in the SQL query, not in the application.
    The sortBy attribute of cm:search is translated to “order by” in the SQL query, as expected.
    Is it possible to get cm:search to generate the SQL query with an addition of “where rownum <= maxRows”?

    Hi Erik,
    The behavior of a repository in regards to the search tag's max results parameter is dependent on the underlying repository's implementation. That said, the OOTB repository in WLP does augment the generated SQL to limit the number of rows returned from the database. This is done in the parsing logic. This behavior may differ with other repository implementations.
    -Ryan

Maybe you are looking for

  • JDeveloper and JSP 1.1

    Hallo, I'm using JDeveloper 3.1 for my JSP projects. This version of the product was deployed with OracleJSP (ojsp.jar) version 1.0. Now, I have the need to use some JSP 1.1 feature, but I have found no hints (Technet, Metalink) to upgrade OracleJSP

  • How do you subscribe to Photoshop Elements 9 Plus after you have installed Photoshop Elements 9?

    I just installed Photoshop Element 9 and at the time of installation did not subscribe to Photoshop Elements 9 Plus because I did not need the online storage space.  Since it appears that all artwork,( ie. frames, themes and backgrounds), are no long

  • D1000 Max Disk Size

    I have found conflicting information. I am hoping one if the experts here can help. I am trying to find out what the max disk size is for the D1000's. The handbook says 73GB but the sunstore sells 146GB drives that are for the D1000. So which is it?

  • Report access

    Hi, Is it possible to allow a user to access a specific report in the Company Wide Shared Folder? We are planning to create a centralized report to be accessed by some users but we don't want them to view/copy other reports in the shared folder. Than

  • Photoshop Elements 12 - New Install

    The photo editor will not launch completely.  The menus are not operational and the photo never loads. Tried uninstalling and reinstalling.  No install errors.