How to generate a dynamic URL using in Oracle Commerce(ATG)

前端 未结 3 397
一生所求
一生所求 2021-02-04 21:33

I\'m trying to display list of products in a jsp using ProductLookup droplet as shown below. I\'m also trying to give a hyperlink to navigate to product details page of the indi

3条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-04 22:19

    @Bated answer is pretty thorough but want to add some additional information about why it is so important to use the ATG dsp tags to achieve this.


    ATG maintains your session in two ways:

    1. Via the jsessionid stored in a cookie
    2. Via the jsessionid stored in the query string

    By using the tags you ensure that you maintain the users session as it is quite possible that the user has cookies disabled and the dsp tags will revert to using the query string.

    Using the html anchor tag is unsafe for this reason as the users session will only be maintained if they have cookies enabled.

提交回复
热议问题