Approach to convert jsp code to htl in aem

srikanthg212933

10-09-2020

Hi 

I have a usecase where currently we have two components with below code structure dependency

 

componenta

  •      show.jsp
  • sling:resourcesupertype : componentb

Componentb

  • init.jsp
  • componentb.jsp -----> inside this show.jsp is called.
  • show.jsp

So currently I wanted to convert componenta show.jsp to html(htl) with model class without effecting supertype componentb(because this component is used in multiple places dint want to disturb this). How this can be achieved i mean how can make sure my html is loaded once the request comes to show.jsp in componenta. any references would be helpful.

Accepted Solutions (1)

Accepted Solutions (1)

Arun_Patidar

MVP

13-09-2020

Hi,

I think, you can do it without any issue.

Convert componentA into HTL(HTML+Model)

Include ComlponnetA into ComponentB using cq:include or sling:include

Answers (1)

Answers (1)