Hello, how to embed code from amazon in html with thymeleaf : <a href="https://www.amazon.de/dp/B007EV3T6K?smid=A1I1TV7GFQB7DW&ascsubtag=s_58d_389075c_1t_1503424949731i_773495078h_3o_0u_FL87EJBJJ5C259S9P0W2&childASIN=B007EV3T6K&childASIN=B007EV3T6K&linkCode=li2&tag=marketcente0b-21&linkId=60f66d545053f0007c32c0d54eb1fe77&language=de_DE&ref_=as_li_ss_il" target="_blank"><img border="0" src="//ws-eu.amazon-adsystem.com/widgets/q?_encoding=UTF8&ASIN=B007EV3T6K&Format=SL160&ID=AsinImage&MarketPlace=DE&ServiceVersion=20070822&WS=1&tag=marketcente0b-21&language=de_DE" ></a><img src="https://ir-de.amazon-adsystem.com/e/ir?t=marketcente0b-21&language=de_DE&l=li2&o=3&a=B007EV3T6K" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />

The code that you are showing me is simple HTML code that produces a linkable image, followed by a little tracking pixel, and can be embedded anywhere. While I don't have any personal experience with Thymeleaf, it's a template engine that lets you insert HTML and include Java variables. We use a similar PHP templating engine here at DaniWeb.

You should be able to insert the code anywhere into one of your Thymeleaf HTML templates as-is. Is something not working?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.