Please file a JIRA.

--- On Fri, 12/12/08, Luis Gervaso <luis.gerv...@gmail.com> wrote:

> From: Luis Gervaso <luis.gerv...@gmail.com>
> Subject: Maybe a bug on S2 2.0.14 : ServletRedirectResult
> To: "Struts Users Mailing List" <user@struts.apache.org>
> Date: Friday, December 12, 2008, 1:35 AM
> 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

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to