CreateUrl.xml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. =================================================================
  4. * Licensed Materials - Property of IBM
  5. * (c) Copyright IBM Corp. 2003, 2010. All rights reserved.
  6. *
  7. * US Government Users Restricted Rights - Use, duplication or
  8. * disclosure restricted by GSA ADP Schedule Contract with IBM
  9. * Corp.
  10. *
  11. * DISCLAIMER OF WARRANTIES. The following [enclosed] code is
  12. * sample code created by IBM Corporation. This sample code is
  13. * not part of any standard or IBM product and is provided to you
  14. * solely for the purpose of assisting you in the development of
  15. * your applications. The code is provided "AS IS", without
  16. * warranty of any kind. IBM shall not be liable for any damages
  17. * arising out of your use of the sample code, even if they have
  18. * been advised of the possibility of such damages.
  19. *
  20. =================================================================
  21. -->
  22. <request xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  23. xsi:noNamespaceSchemaLocation="PortalConfig_8.0.0.xsd"
  24. type="update">
  25. <!-- Sample for creating a URL mapping context for "SamplePage." See DeployPortlet.xml.
  26. NOTE: This sample expects that the DeployPortlet.xml sample was executed before.
  27. -->
  28. <portal action="locate">
  29. <!-- Locate the resource and name it "Favorites."-->
  30. <content-node action="locate" uniquename="ibm.portal.ssa.SamplePage" objectid="SamplePage"/>
  31. <!-- The label defines the URL, e.g. <hostname>/wps/portal/<portal id>/samples. -->
  32. <url-mapping-context action="update" label="samples">
  33. <!-- It's also accessible by <hostname>/wps/portal/<portal id>/examples. -->
  34. <additional-label>examples</additional-label>
  35. <!-- The link to the resource -->
  36. <portal-url resourceref="SamplePage" locale="en"/>
  37. </url-mapping-context>
  38. </portal>
  39. </request>