Hi All,
I have a servlet with URL /bin/redirectServlet. In this servlet I just want to redirect from to some other page using RequestDispatcher.
RequestDispatcher rd = request.getRequestDispatcher("/content/<app_name>/<page>/<sub_page>.html"); //here request is SlingHttpServletRequest since it is a sling servlet. try { rd.forward(request, response);
But it is not doing anything for me. Please help me out.
This is a simple page redirect.
Thanks in advance.
Solved! Go to Solution.
Hi Ramana
Hope this helps http://aem-cq-tutorials.blogspot.in/2014/06/mapping-of-request-urls-in-cqaem.html
RequestDispatcher rd = request.getRequestDispatcher("/content/<app_name>/<page>/<sub_page>.html"); //here request is SlingHttpServletRequest since it is a sling servlet. try {
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies