Questions tagged [sling]

Apache Sling is a web framework that uses Java Content Repository to store and manage content. It also uses OSGi (Apache Felix) for dynamic loading.

Description

Apache Sling is a web framework that uses a Java Content Repository , such as Apache Jackrabbit , to store and manage content.

Sling applications use either scripts or Java servlets, selected based on simple name conventions, to process HTTP requests in a RESTful way.

The embedded Apache Felix OSGi framework and console provide a dynamic runtime environment, where code and content bundles can be loaded, unloaded and reconfigured at runtime.

As the first web framework dedicated to JSR-170 Java Content Repositories, Sling makes it very simple to implement simple applications, while providing an enterprise-level framework for more complex applications.

Links

863 questions
0
votes
2 answers

Reading an OSGi config value

I've got some code like this to read a value that could be set either with a sling:OsgiConfig node or after being set in the Felix UI... @Component(immediate = true, metatype = true, label = "Dummy Service") public class DummyService { …
joelt
  • 2,672
  • 2
  • 24
  • 32
0
votes
2 answers

How to use DataSourcePool in Adobe CQ5.5?

I have created a @Component and in that component at instance level I am doing @Reference DataSourcePool. But the Class DataSourcePool is not found so my class doen't compile. I am using CRXDE Eclipse. I have done all this by following this…
Oliver
  • 6,152
  • 2
  • 42
  • 75
0
votes
1 answer

Override a default mime-type when using the Sling MimeTypeService

I am using the Sling MimeTypeService in order to get an appropriate extension for a given file & trying to override a default extension with my own. E.g. if I had a method: @Reference MimeTypeService mimeTypeService; public void…
anotherdave
  • 6,656
  • 4
  • 34
  • 65
0
votes
1 answer

A welcome message, that is pulled from a servlet that is configurable from the OSGi console

I am new to CQ5. I created a bundle that is configurable via the OSGi console. Now, I need the value that is configured on the console to be returned to my content page. I am not sure how to proceed with this. Looking for any tutorial or help.…
clever_bassi
  • 2,392
  • 2
  • 24
  • 43
0
votes
3 answers

CQ - Moving content from one page to another

I realize that this is a pretty specific question but I would imagine someone has run into this before. So I've got about fifty pages or so that were created about a year ago. We're trying to revamp the page with new components specifically in the…
Delmon Young
  • 2,013
  • 5
  • 39
  • 51
0
votes
0 answers

Node not getting deleted in publish instance

I have nodes' shared between parent and child pages through mix:shareable mixin. The synchronization of data works fine in author instance but when the pages are activated the shared nodes get created with different UUID(this breaks the sync). I…
Sharath Madappa
  • 3,393
  • 1
  • 24
  • 41
0
votes
2 answers

Is there a management url that lists all existing servlets in Apache Sling or CQ?

I am wandering if I can get a management url to show all the existing servlets. Could anyone help me on that? Thanks.
0
votes
1 answer

Sling Scripting, Groovy and sling.include

I implemented a Groovy/Sling version of this. The application is fully functional (except for the search, which will be implemented soon). The source node is available here. The problem I am facing now towards the end of the project in the…
Florian Salihovic
  • 3,921
  • 2
  • 19
  • 26
0
votes
2 answers

How to properly check selectors and extensions via RequestPathInfo

I've been working on a component and currently I'm trying to do different things based on the selector chosen for the component. So basically if I have a component with this structure myComponent/ dialog.xml myComponent.jsp altView.jsp I know…
Brodie
  • 8,399
  • 8
  • 35
  • 55
0
votes
1 answer

Sharing xml string between two components on different pages in cq5

I tried using request attributes to share data between two jsps of two components but its not working as the second jsp is getting the new request. I've also gone through this question but its not fitting my scenario. How to share data or strings…
user3487063
  • 3,672
  • 1
  • 17
  • 24
0
votes
1 answer

Sling Servlet as a Service in CQ5 (OSGi Bundle)

We trying to create a osgi backend service for CQ5. We are using the cqblueprints archetype with eclipse as the dev environment. And we are able to deploy it to CQ using the console. In the CQ Web console we can view the details of the bundle as…
kallada
  • 1,829
  • 4
  • 33
  • 64
0
votes
1 answer

Sling webapp installation deploy error

I'm trying to run sling framework. After building it from sources I have org.apache.sling.launchpad-7-SNAPSHOT.war file. When I'm deploying it in tomcat7 I'm getting SEVERE: sling: Failed installing…
adaniluk
  • 321
  • 1
  • 5
  • 18
0
votes
1 answer

CQ5.5: Accessing a referring resource in a osgi servlet

I'm curious if there is a way to access a referrer resource from inside an OSGI Servlet. Example: I have a form component Form component submits to /bin/form (a servlet) Inside the servlet at /bin/form I would like to access the form component…
Brodie
  • 8,399
  • 8
  • 35
  • 55
0
votes
1 answer

CQ5 dispatcher alternative

Is there any alternative of dispatcher? We cannot set headers from CQ5 with using dispatcher. Handling cookies is also tricky, we can store cookies, only with POST request with using dispatcher. (storing cookies on client side is a bad…
nerd
  • 837
  • 6
  • 21
0
votes
1 answer

Modify Sling request parameters

I am building a web app based on Adobe CQ 5.6.1. I have a need to use SlingHttpServletRequest.getRequestParameters(..), I also want that when i call this method i should get modified request parameters which are XSS cleaned Now to ensure that this…
ramesh
  • 21
  • 1
  • 3