Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Static Templates to Editable Templates

Avatar

Avatar
Boost 5
Level 2
anupam_miglani
Level 2

Likes

7 likes

Total Posts

10 posts

Correct Reply

1 solution
Top badges earned
Boost 5
Validate 1
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Boost 5
Level 2
anupam_miglani
Level 2

Likes

7 likes

Total Posts

10 posts

Correct Reply

1 solution
Top badges earned
Boost 5
Validate 1
Boost 3
Boost 1
Affirm 1
View profile
anupam_miglani
Level 2

31-05-2021

Hi All,


I am working on a migration project(6.2 to 6.5). My all static templates are made with heavy JSP implementaion. Now to proceed on migrating static template to editable template, i am wondering if we can use same JSP scripts and try to include templated container snippet from here (/libs/wcm/foundation/components/basicpage/v1/basicpage/basicpage.html). or creating the whole new template in HTL is best way to approach it.

cc: @arunpatidar26 @Kautuksahni 

TIA

 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Establish
MVP
Ravi_Pampana
MVP

Likes

190 likes

Total Posts

239 posts

Correct Reply

74 solutions
Top badges earned
Establish
Contributor
Shape 1
Ignite 5
Ignite 3
View profile

Avatar
Establish
MVP
Ravi_Pampana
MVP

Likes

190 likes

Total Posts

239 posts

Correct Reply

74 solutions
Top badges earned
Establish
Contributor
Shape 1
Ignite 5
Ignite 3
View profile
Ravi_Pampana
MVP

31-05-2021

Hi,

 

It will be better to stop using JSP's and create editable template with .html 

Answers (1)

Answers (1)

Avatar

Avatar
Boost 100
Employee
markus_bulla_adobe
Employee

Likes

110 likes

Total Posts

89 posts

Correct Reply

46 solutions
Top badges earned
Boost 100
Applaud 25
Affirm 25
Boost 50
Boost 25
View profile

Avatar
Boost 100
Employee
markus_bulla_adobe
Employee

Likes

110 likes

Total Posts

89 posts

Correct Reply

46 solutions
Top badges earned
Boost 100
Applaud 25
Affirm 25
Boost 50
Boost 25
View profile
markus_bulla_adobe
Employee

01-06-2021

Hi @anupam_miglani!

AEM migration projects should be seen and planned on multiple levels. Many customers tend to split the migration into multiple phases for each of them, e. g.:

  • Migrating the existing platform (6.2 to 6.5 in your case) - basically updating the dependecies (primarily: the AEM uber jar) and getting your existing application and website running on the new product version.
  • Source code modernization - projects that have been developed for older versions of AEM usually have quite some "legacy" code that does not reflect the latest development best practices and recommended patterns. So refactoring your existing code base to modernize it should be on your list.
  • Adapting new features - newer versions of AEM come with additional features that you may want to leverage. One that seems to be a priority on your list is Editable Templates. As your question is specifically about this, I'll give some recommendations below:

Editable Templates

When existing projects want to leverage Editable Templates it is important to be aware that a "simple" 1:1 migration usually isn't the best approach. Editable Templates have many advantages that bring most benefit if you design your template around these capabilities. In addition to that my personal recommendation is to evaluate your template requirements to see where you want/need Editable Templates and if static templates are still a good fit for others. While it's totally possible (and probably recommendable for green field projects) to run your platform/website completely with editable templates, they also come with certain complexity. Therefore, most existing projects moving to editable templates go with a mix of both approaches.

So the bottom line is: when migrating to a newer AEM version and modernizing your project, it is not mandatory to move all your templates to be editable. Evaluate your setup and requirements and decide for which ones this makes sense and for which ones it does not.

 

When it comes the actual implementation, I totally agree with @Ravi_Pampana: don't just move your JSPs but migrate to HTL. This is more important then actually moving all templates to be editable. You may want to have a look at AEMs Modernization Tools [1] to see if they can help you with your overall upgrade and migration.

 

Hope that helps!

 

[1] https://experienceleague.adobe.com/docs/experience-manager-65/developing/devtools/modernization-tool...