Monday, January 2, 2012

URL mapping example in websphere portal

URL mapping is used to create user friendly URLs and map them to portal pages.
This feature enables users to navigate to a particular page directly by clicking on these urls if the pages can be accessed directly with out loggin in.   For pages which can be accessed only after login, portal redirects to the login page and once the user logs in the page will be displayed directly.



First of all check if url mapping is enabled for your portal. If it is not enabled follow the below steps to enable it.

Login to WAS admin console and navigate to Resources->Resource Environment ->Resource Environment Providers and click on wp_configservice.


then click on Custom Properties.


check if wps.mappingurl.enabled  property exists with value equal to true

if it doesnt exist click new and create the property as shown below
 

This feature can also be enabled using Configengine task. refer to websphere portal info center for details .

After URL mapping is enabled follow the below steps to create a new url mapping. . 


Login to portal  and click on Administration->Portal Settings->url mapping and click on new context .

and enter the desired name  let say  "Myurl" and click ok.

now click on the editmapping button


and select the page you want to map the url to as shown below


and click ok.

now this page can be accessed directly using the url you created

http://localhost:10039/wps/myportal/myurl 
if the page can be accessed only after login

or http://localhost:10039/wps/portal/myurl

if the page can be accessed even with out login.

5 comments:

  1. Thank You, very much.

    ReplyDelete
  2. Thank you for providing me with this information. If you want to set a world record for click speed, check out this article about Badlion Click Test Online. It has information about a tool that will tell you your clicking speed for free and will also provide a platform for the test.

    ReplyDelete

comments