Right.  That makes sense.  But (always a but isn't there)...

        I have a node at /records say.  I want to user to be able to hit that 
node by specifying the URL:  http://server:port/records.  I have been using 
resourceType to accomplish that.  But without specifying any selectors, 
extensions, suffixes, or anything else, I find I need to use GET.jsp.  Is there 
a better way?  Or do I require the user to add a 'html'?


-----Original Message-----
From: Alexander Klimetschek [mailto:[email protected]] 
Sent: Thursday, January 27, 2011 11:30 AM
To: [email protected]
Subject: Re: Sling.getContent() and resourceType

On 27.01.11 17:23, "Andrew Top" <[email protected]> wrote:
>How do I get Sling.getContent() to not follow the resourceType on a JCR
>node?
>...
>I ended up using a GET.jsp so that sling/JCR would direct all GET
>requests to my JSP page (i.e. http://server:port/mynode).

I think getContent() will use <path>.json, right? Then you should avoid
overwriting the json extension in your script, which you do by the generic
GET.jsp. If you only generate html in your jsp for example (for handling
requests like /something.html), you could use a GET.html.jsp.

Regards,
Alex

-- 
Alexander Klimetschek
Developer // Adobe (Day) // Berlin - Basel




Reply via email to