adobe - CQ5 Invalid recursion selector value 'data' (data.json.jsp) -


let's have page in cq5. created page using template single component, call tablecomp, , hit @ url test.html. component contains standard jsp file page template being used contains specific jsp json or xml rendering of custom data, not page data.

this jsp file rendering named data.xml.jsp or data.json.jsp. hit rendering jsp page test.html call /content/{org}/desktop/en_us/{name}/test.data.json or /content/{org}/desktop/en_us/{name}/test.data.xml.

the xml/json jsp called contains code values , print screen xml or json. ex: blah

now want display information screen json output when hit new file named data.json.jsp. when hitting data.xml.jsp works correctly , hits jsp. when exact same process data.json.jsp following.

invalid recursion selector value 'data'  cannot serve request /content/{org}/desktop/en_us/{name}/test.data.json in org.apache.sling.servlets.get.defaultgetservlet  request progress:        0 (2015-07-22 18:10:06) timer_start{request processing}       0 (2015-07-22 18:10:06) comment timer_end format {<elapsed msec>,<timer name>} <optional message>       0 (2015-07-22 18:10:06) log method=get, pathinfo=/content/{org}/desktop/en_us/{name}/test.data.json 

i have tried adding pages.json.jsp file /libs/foundation/components/primary/cq/page section suggested in forum did not help. content of pages.json.jsp file <%@include file="proxy.jsp"%>.

how can json work type of request?

edit:

i have changed original explanation clarify problem.

looks request being handled defaultgetservlet in turn uses jsonrendererservlet process requests .json extensions.

since jsonrendererservlet requires numeric selector or infinity selector, throws following error.

invalid recursion selector value <<selector>>

however requesting /test/_jcr_content.data.json render json data processed data.json.jsp instead of defaultgetservlet.


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -