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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Dynamic Drop down Issue


Level 5


I am having datasource.jsp file same as in this article.

As per my requirement I need to do customization on top of that. To do so, I need variable such as currentNode or currentPage. I am getting below behavior while using below jsp.

out.println(resource.getPath()); gives result


But currentPage.getPath() gives error :

Internal Server Error Cannot serve request to /mnt/override/apps/myprj/components/content/tabcontent/_cq_dialog.html/content/myprj/en/homepage/jcr:content/root/responsivegrid/tabs/tabbedpar-0/tabbedcomponent/tabpar-0 in /apps/myprj/components/content/tabcontent/datasource/datasource.jsp  Exception: java.lang.NullPointerException at org.apache.jsp.apps.myprj.components.content.tabcontent.datasource.datasource_jsp._jspService( at 

Also why it is picking up path from /mnt. I am using AEM 6.4.

1 Reply