PrepAway - Latest Free Exam Questions & Answers

What change must he make to this code to allow users to bookmark the page?

Jack wants to allow users to bookmark his portal page. He is using the following code:
<portal-navigation:urlGeneration> <a href=”<% wpsURL.write(out); %>”> My Page </a>
</portal-navigation:urlGeneration> What change must he make to this code to allow users to
bookmark the page?

PrepAway - Latest Free Exam Questions & Answers

A.
The code is correct and will allow the users to bookmark the page.

B.
He must include the normalize=”true” attribute to indicate that the URL to be generated should

be normalized.

C.
He must include the forceAbsolute=”true” attribute to indicate that the URL to be generated
should be absolute.

D.
He must include the keepNavigationalState=”true” attribute to indicate that the URL to be
generated should keep the current navigational state, which will include all portlet modes, states,
and render parameters in the URL.

One Comment on “What change must he make to this code to allow users to bookmark the page?

  1. AlfA says:

    the correct is B
    https://www.ibm.com/support/knowledgecenter/en/SSYJ99_8.5.0/dev-portlet/dgn_ptlnavig.html

    normalize=”true|false”
    This attribute indicates that the URL to be generated must be normalized. If more parameters are set, the normalization is run first and afterward the other state modifications are accomplished. Setting the “normalize” parameter to true normalizes the URL with the same XSL file used to normalize URLs for search engines. The normalized representation of the URL can also be used to bookmark a page. The following example shows how to use the tag with this attribute:

    <a href="”>
    This is the normalized URL of the current
    selected page.




    0



    0

Leave a Reply