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
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
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;
}
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
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
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;
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
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
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
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
10 matches
Mail list logo