Re: Usability of all tags in taglib.tld for jsp

2008-08-13 Thread janandith jayawardena
Hi, Thank you Felix for showing me the correct way to use replaceSuffix. It works fine :-). I've also managed to use the resulting output as suggested by Bertrand. Janandith On Mon, Aug 11, 2008 at 1:12 PM, Bertrand Delacretaz [EMAIL PROTECTED] wrote: On Mon, Aug 11, 2008 at 9:33 AM, Felix

Re: Usability of all tags in taglib.tld for jsp

2008-08-11 Thread Felix Meschberger
Hi, Create a new script, say suffixtest.jsp which contains the test code: String suffixTest = req.getRequestPathInfo().getSuffix() ; if(suffixTest==null){ suffixTest = Suffix Not Successful; } else{ suffixTest = Suffix Successful; } and which is included by

Re: Usability of all tags in taglib.tld for jsp

2008-08-11 Thread Bertrand Delacretaz
On Mon, Aug 11, 2008 at 9:33 AM, Felix Meschberger [EMAIL PROTECTED] wrote: ...Create a new script, say suffixtest.jsp which contains the test code: String suffixTest = req.getRequestPathInfo().getSuffix() ; if(suffixTest==null){ suffixTest = Suffix Not Successful; }

Re: Usability of all tags in taglib.tld for jsp

2008-08-10 Thread Felix Meschberger
Hi, I would assume that the problem is, that the replacement suffix is only available in the included request and not in the including request. Thus, the suffix.jsp script is not expected to see the new suffix. Regards Felix janandith jayawardena schrieb: Hi, Thanks Felix. I wrote the test

Re: Usability of all tags in taglib.tld for jsp

2008-08-10 Thread janandith jayawardena
Hi, Is there another way this can be done so I can test the functionality for replaceSuffix . :) Janandith. On Mon, Aug 11, 2008 at 1:06 AM, Felix Meschberger [EMAIL PROTECTED]wrote: Hi, I would assume that the problem is, that the replacement suffix is only available in the included

Re: Usability of all tags in taglib.tld for jsp

2008-08-06 Thread janandith jayawardena
Hi, Thanks Felix. I wrote the test for replaceSelector :). The problem now is with replace suffix. can you suggest a way for this. currently in my test file I have this, MapString,String props = new HashMapString,String(); string resourceTypeX = /x;

Re: Usability of all tags in taglib.tld for jsp

2008-08-04 Thread janandith jayawardena
Hi Felix, I do not exactly understand what you are trying to achieve. Do you have three scripts -- html.jsp, selector.jsp and replace.jsp ? And you request http://host/something.html and have the html.jsp being called. Now what is next ? Thats what I want to do :). Basically I want a way

Re: Usability of all tags in taglib.tld for jsp

2008-07-31 Thread Bertrand Delacretaz
Hi, On Thu, Jul 31, 2008 at 7:52 AM, janandith jayawardena [EMAIL PROTECTED] wrote: ...There are the following properties(options) in the taglib.tld for JSP tags in sling I assume you mean sling:include, as the only other tag is sling:defineObjects which has different attributes. ...I

Re: Usability of all tags in taglib.tld for jsp

2008-07-31 Thread janandith jayawardena
Hi, Thanks Bertrand. When I use , sling:include addSelectors=selector replaceSelectors=replace / I get the content of replace.jsp and when I use , sling:include addSelectors=selector/ sling:include addSelectors=selector replaceSelectors=replace / I get both selector.jsp and replace.jsp

Usability of all tags in taglib.tld for jsp

2008-07-30 Thread janandith jayawardena
Hi, There are the following properties(options) in the taglib.tld for JSP tags in sling. resource path resourceType addSelectors replaceSelectors replaceSuffix flush I have used path , resourceType , addSelectors and what happens is clear for me. The rest is bit unclear for me. I can't