Hello

*private* *static* *boolean* isPathUrl(String url) {
        *// filter out "http:", "https:", "mailto:";, "file:", "ftp:"
*        *// since the only valid places for : in URL's is before the
path specification
*        *// either before the port, or after the protocol
*        *return* (url.indexOf(*':'*) == -1);
}

I'm currently using jcr (jackrabbit) as backend, and the path
*parameter* of the nodes can be ns:name

so my urls are http://.../resourcesManager.action?path=/jcr:system/other/stuff

The redirect removes the context path,

maybe a workaround solution use de URL class

When you construct a URL object, Java looks for a
protocol handler that understands the protocol part of the URL such
as "http" or "mailto". If no such handler is found, the constructor
throws a MalformedURLException.

Hope this helps


-- 
-------------------------------------------
Luis Alberto Gervaso Martin
Java EE Architect & Instructor
C/ Cuenca 4A, 2ºB
Getafe (Madrid)
SPAIN
mobile: (+34) 627983344
luis.gerv...@gmail.com

Reply via email to