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

AnkitCh
AnkitCh
Offline
  • Hi HTH,I am already using this dependency though with a different version:<dependency>             <groupId>com.day.cq</groupId>            <artifactId>cq-commons</artifactId>            <version>5.6.2</version>            <scope>provided</scope>            </dependency>Do you think version make a d...

    Type

    Questions

    Views

    555

    Likes

    0

    Replies

    0
  • Hi HTH,Thank you for your response. I have gone through that already and used the dependency the same way as in the link you sent. I am not able to understand what more dependency I need to use. I used CQ in-built dependency checker to determine the dependency of com.day.cq.wcm.api. Declared it and ...

    Type

    Questions

    Views

    582

    Likes

    0

    Replies

    0
  • Hi All,I have setup my CQ workspace in eclipse and using maven to build the project. I am trying to compile a test java file:package com.mercer.taglibs.tags; import com.day.cq.wcm.api.Page; public class HelloPerson { private Page personPage; public static final String PN_PERSON_NAME = "personName"; ...

    Type

    Questions

    Views

    1.1K

    Likes

    0

    Replies

    8
  • Thanks for you response Yogesh. I just validated the jsp file and getting an error "Fragment "/apps/mercer/components/common/global.jsp" was not found at expected path /MMC/apps/ mercer/components/common/global.jsp"Is there anyways I can fix this.I am also getting error "currentPage cannot be resolv...

    Type

    Questions

    Views

    1.3K

    Likes

    0

    Replies

    0
  • Hi Bruce,I just copied global.jsp from /libs/foundation. But it is still giving errors. However, I have one more thought going on in my mind. Since the APIs used here in this code are all CQ related and this is more of an environment related issue, and hence should work fine in your regular CQ envir...

    Type

    Questions

    Views

    1.3K

    Likes

    0

    Replies

    0
  • What I sometimes do is to reference the global.jsp via ../../ instead of /libs/ etc.Can you try this?What I sometimes do is to reference the global.jsp via ../../ instead of /libs/ etc.Can you try this? This did the trick.  Thanks for the response.Ankit

    Type

    Questions

    Views

    1.3K

    Like

    1

    Replies

    0
  • Hi,I am trying to achieve autocomplete feature on JSP in eclipse. I have followed the page http://dev.day.com/docs/en/cq/aem-how-tos/development/howto-develop-aem-projects-using-eclipse.html but still not able to accomplish. Here is a sample jsp I have prepared :<%@ include file="/libs/foundation/gl...

    Type

    Questions

    Views

    2.6K

    Likes

    2

    Replies

    7
  • Scott, I am not trying to map any JSP to the servlet. All I am trying to do is access a page http://localhost:4502/cf#/insights and want that when this page is hit the control should go the servlet. I have mapped /insights to the servelet using path attribute. Please let me know if what I am trying ...

    Type

    Questions

    Views

    838

    Likes

    0

    Replies

    0
  • Hi Scott,Thank you for the response and I am doing exactly that. The path I have included in my Servlet is exactly the same as that of the page I access. Please see.Ankit.

    Type

    Questions

    Views

    816

    Likes

    0

    Replies

    0
  • Hi,I have created a test sling servlet as shown below:package com.mercer.servlets; import org.apache.felix.scr.annotations.sling.SlingServlet; import org.apache.sling.api.SlingHttpServletRequest; import org.apache.sling.api.SlingHttpServletResponse; import org.apache.sling.api.servlets.SlingAllMetho...

    Type

    Questions

    Views

    2.2K

    Like

    1

    Replies

    8
Top badges earned by AnkitCh
Customize the badges you want to showcase on your profile