質問

I wanted to know how the Servlets are mapped in CQ5.5. As in the previous version(CQ5.4) there used to be a Server folder but this seems to be changed now in this version. I searched for it in the complete cq-quickstart repository but could not find. Where can I see the web.xml file?

Thanks in Advance !

役に立ちましたか?

解決

In CQ, like in Apache Sling, you dont need a web.xml to map servlets. They are registered as components with some properties. You can use some simple annotations to register a servlet under certain resource type or path. Adobe has some instructions.

You Basically annotate your servlet class with the @SlingServlet annotation. You can register a servlet into a specific url or you can bind it into a particular resource type

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top