7

I have my front end as a Java application, how will ADF talk to Tridion and run the Fredhopper queries to render content based on rules configured in Fredhopper? Do I need to write a code at JSP page level? Kindly provide some pointers.

This question is taken from this comment. Originally asked by Mark Thomas.

7

Your JAVA website will use the SmartTaget tag library, or if you like the SmartTarget API, to get the content for a specific SmartTarget region. SmartTarget will also take care of the SmartTarget markup for Experience Manager.

In a JSP page you could add some JSP tags to define the SmartTarget region on the page. SmartTarget will do the rest. See a minimal JSP example, full JSP example, also the Dreamweaver templating and TCDL equivalent. The documentation (login required) explains a lot of detail as well.

The SmartTarget libraries will then form a Fredhopper query and execute it. A helper in the SmartTarget API takes claims (variables) from ADF and maps them to Fredhopper triggers (the mapping is configured in the smarttarget_conf.xml on the website webapp).

So ADF does not talk to Fredhopper. The role of ADF is to gather the user context variables named claims. SmartTarget will take this data, figure out which triggers have to be set on the Fredhopper query, and execute this query.

Off-topic but nice to know: In SmartTarget 2014 SP1 the SmartTarget API is very open, for example, you change the Fredhopper query before it gets executed, change the triggers which were mapped from ADF and more.

| improve this answer | |
  • Hi Jan, I have gone through the above links. My doubt is as follows: – Mark Thomas Dec 17 '14 at 11:06
  • Hi Jan, I have gone through the above links. My doubt is as follows: For our case, we are generating the page XML where content is stored as CDATA tags and storing it in a Broker Database. The content is displayed on the webpage by a JSF Java Application which consumes the generated XML from Broker Database through a Content Service Layer by using Web Services. How will the Java Application invoke the Fredhopper queries and display content based on ADF claims.. What API can I use and what parameters I need to pass to Tridion/Smart Target to acheive the functionality. Thanks – Mark Thomas Dec 18 '14 at 4:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.