@jayv25585659
Write a Filter and target the path "/content/myapp/en/folder1", do your conditional checks in doFilter().
You need to set cache header to privte for this path in dispatcher.
@TarunKumar Check if any of the below two methods works.
context.currentResource("/content/...").adaptTo(FragmentTemplate.class);
context.request().adaptTo(FragmentTemplate.class);
If the servlet is called from author, then will have current logged-in user permissions.If it called from publish(live site), then will only have read access to /content
@Preethi1234 I see there is no need of creating dialog field on fly. Instead have the textfield hidden by default and show/hide based on you dropdown change listener.