Servlet Resolution

2007-11-20 Thread Felix Meschberger
Hi all, I want to propose an extension to the current Servlet Resolution process. At the moment Servlets in Sling (and microsling) are only selected based on the Resource Type (Resource.getResourceType()) while scripts are selected by resource type, selectors, HTTP request method and response

Servlet Resolution

2008-11-26 Thread Felix Meschberger
Hi all, After the big reorganization of servlet resolution in April of this year and some more experiences with using Sling, I propose the extension of our servlet/script resolution process. Actually it is a single change only: Consider request selectors for all requests. Currently request

servlet resolution question

2008-01-25 Thread Tobias Bocanegra
hi, i face a problem with the servlet resolution. i want to use my own servlet for GET requests, but the default ujax post servlet for POST requests. the servlet resolver finds my servlet for the respective resource type, but does not check may service later: SlingServletResolver

Servlet resolution broken?

2008-02-15 Thread Vidar Ramdal
I'm trying to register a servlet to handle requests with a ".menu" extension: * @scr.property * name="sling.servlet.extensions" * value="menu" Then I post some content: curl -F"sling:resourceType=foo/bar" -F"title=some title" http://admin:[EMAIL PROTECTED]:/content/mynode If I now visit

Re: Servlet Resolution

2008-11-26 Thread Tobias Bocanegra
On 11/26/08, Felix Meschberger <[EMAIL PROTECTED]> wrote: > Hi all, > > After the big reorganization of servlet resolution in April of this year > and some more experiences with using Sling, I propose the extension of > our servlet/script resolution process. > > Act

Re: Servlet Resolution

2008-11-27 Thread Juan José Vázquez Delgado
+1. I think this is a possibly very common use case. BR, Juanjo. On Wed, Nov 26, 2008 at 10:39 PM, Felix Meschberger <[EMAIL PROTECTED]>wrote: > Hi all, > > After the big reorganization of servlet resolution in April of this year > and some more experiences with using Sl

Re: Servlet Resolution

2008-11-27 Thread Alexander Klimetschek
On Wed, Nov 26, 2008 at 10:39 PM, Felix Meschberger <[EMAIL PROTECTED]> wrote: > Over time use cases arose, which would be easier implementable if we > would support using selectors to influence servlet/script resolution for > all methods. +1 Regards, Alex -- Alexander Klimetschek [EMAIL PROTEC

Re: Servlet Resolution

2008-11-27 Thread Bertrand Delacretaz
> +1 to allow selector mapping for all methods. +1 -Bertrand

Re: Servlet Resolution

2008-11-30 Thread Carsten Ziegeler
Felix Meschberger schrieb: > Hi all, > > After the big reorganization of servlet resolution in April of this year > and some more experiences with using Sling, I propose the extension of > our servlet/script resolution process. > > Actually it is a single change only: Consi

Re: Servlet Resolution

2008-12-01 Thread Felix Meschberger
Hi all, Thanks for your feedback. I have created SLING-748 and applied the changes of my whiteboard into trunk in Rev. 722089 Regards Felix [1] https://issues.apache.org/jira/browse/SLING-748 Felix Meschberger schrieb: > Hi all, > > After the big reorganization of servlet resolution

Re: servlet resolution question

2008-01-25 Thread Felix Meschberger
uot;. POST requests as well as any other GET requests are not handled by your servlet. More information on servlet resolution is to be coming soon on the wiki Hope this helps so far. Regards Felix Am Freitag, den 25.01.2008, 16:48 +0100 schrieb Tobias Bocanegra: > hi, > i face a problem

Re: servlet resolution question

2008-01-25 Thread Tobias Bocanegra
ot;html" ] > > Now your servlet is only called for GET requests with extension "html" > to resources whose resource type is "your/resourceType". POST requests > as well as any other GET requests are not handled by your servlet. > > More information on

Re: Servlet resolution broken?

2008-02-15 Thread Felix Meschberger
Hi Vidal, The sling.servlet.resourceTypes annotation is required, otherwise the servlet is just ignored. That is, in your first example, where you just define the sling.servlet.extensions, Sling does not know to which resource type the servlet applies and cannot handle it. @scr.property name="s

Re: Servlet resolution broken?

2008-02-15 Thread Vidar Ramdal
On 2/15/08, Felix Meschberger <[EMAIL PROTECTED]> wrote: > Hi Vidal, > > The sling.servlet.resourceTypes annotation is required, otherwise the > servlet is just ignored. That is, in your first example, where you just > define the sling.servlet.extensions, Sling does not know to which > resource

Re: Servlet resolution broken?

2008-02-15 Thread Felix Meschberger
Hi Vidal, Am Freitag, den 15.02.2008, 15:39 +0100 schrieb Vidar Ramdal: > On 2/15/08, Felix Meschberger <[EMAIL PROTECTED]> wrote: > > Hi Vidal, > > > > The sling.servlet.resourceTypes annotation is required, otherwise the > > servlet is just ignored. That is, in your first example, where you ju

Re: Servlet resolution broken?

2008-02-18 Thread Bertrand Delacretaz
On Feb 15, 2008 3:50 PM, Felix Meschberger <[EMAIL PROTECTED]> wrote: > >... Ah, I see. I wanted to make a servlet that would respond to the .menu > > extension regardless of resourceType, but if that's not possible, I'll > > work around it. Thanks for your help! > > > > That is possible: just use

Using java annotations for servlet resolution mapping

2008-08-12 Thread Tobias Bocanegra
hi, currently sling uses @scr javadoc comments to specify the bindings from the request infos to servlets. for example: /** * @scr.service * @scr.property name="sling.servlet.resourceTypes" values="bin/test" * @scr.property name="sling.servlet.extensions" values="txt, html" */ public class Tes

[jira] Created: (SLING-421) Update Servlet Resolution Description

2008-05-05 Thread Felix Meschberger (JIRA)
Update Servlet Resolution Description - Key: SLING-421 URL: https://issues.apache.org/jira/browse/SLING-421 Project: Sling Issue Type: Sub-task Components: ServletResolver Reporter

[jira] Updated: (SLING-421) Update Servlet Resolution Description

2008-06-03 Thread Felix Meschberger (JIRA)
work on this yet and I do not consider this a release blocker. > Update Servlet Resolution Description > - > > Key: SLING-421 > URL: https://issues.apache.org/jira/browse/SLING-421 > Project: Slin

Re: Using java annotations for servlet resolution mapping

2008-08-13 Thread Carsten Ziegeler
Tobias Bocanegra wrote: this has the following drawbacks: - the possible @scr properties are hard to guess if not documented Hmm, I think they are documented, but perhaps not as prominent as this should be. - the @scr properties are not "type safe" This depends. You can use @scr.property name

[jira] Created: (SLING-923) Servlet resolution examples and integration tests

2009-04-15 Thread Bertrand Delacretaz (JIRA)
Servlet resolution examples and integration tests - Key: SLING-923 URL: https://issues.apache.org/jira/browse/SLING-923 Project: Sling Issue Type: Improvement Components: Testing

[jira] Closed: (SLING-923) Servlet resolution examples and integration tests

2009-04-15 Thread Bertrand Delacretaz (JIRA)
://incubator.apache.org/sling/site/servlet-resolution.html (will be published in a few hours). > Servlet resolution examples and integration tests > - > > Key: SLING-923 > URL: https://issues.apache.org/ji

[jira] Created: (SLING-992) Document Servlet Resolution and Error Handling

2009-06-03 Thread Felix Meschberger (JIRA)
Document Servlet Resolution and Error Handling -- Key: SLING-992 URL: https://issues.apache.org/jira/browse/SLING-992 Project: Sling Issue Type: Task Components: Documentation

[jira] Created: (SLING-145) Apply same logic to servlet resolution as is used for script resolution

2007-12-20 Thread Felix Meschberger (JIRA)
Apply same logic to servlet resolution as is used for script resolution --- Key: SLING-145 URL: https://issues.apache.org/jira/browse/SLING-145 Project: Sling Issue Type

[jira] Closed: (SLING-145) Apply same logic to servlet resolution as is used for script resolution

2008-01-29 Thread Felix Meschberger (JIRA)
integration into trunk as part of SLING-197. Therefore I close this issue. > Apply same logic to servlet resolution as is used for script resolution > --- > > Key: SLING-145 > URL: https://is