Re: Name of executing script
Chris Wallace <[email protected]>
| Newsgroups | gmane.text.xml.exist |
|---|---|
| Message-ID | <CAH0WD3qqAChg=jZf+bNTtNvOikL6rpZ3RTYu2=fYhcgKo7tqkg@mail.gmail.com> |
Here is one way to get it: tokenize(request:get-effective-uri(),"/")[last()] By way of context, when executing a response:redirect-to() , the URI needs the script name even if the redirect is to the current script. Scripts are more maintainable when that name doesn't have to be hard-coded. On Fri, May 19, 2023 at 8:07 AM Chris Wallace <[email protected]> wrote: > Help - I've forgotten how to get the name of the executing script. > > Chris > _______________________________________________ Exist-open mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/exist-open