You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by di...@multitask.com.au on 2002/11/15 02:57:43 UTC
Re: [validator] bug in javascript generation for regular expressions?
Sorry, this is a struts 1.1 issue
--
dIon Gillard, Multitask Consulting
Work: http://www.multitask.com.au
Developers: http://adslgateway.multitask.com.au/developers
dion@multitask.com.au wrote on 15/11/2002 12:10:30 PM:
> I think that this one is biting us:
>
>
> <Code snippet>
> } else if (Var.JSTYPE_REGEXP.equalsIgnoreCase(jsType)) {
> results.append(
> "this."
> + varKey
> + "=/"
> + ValidatorUtil.replace(varValue, "\\", "\\\\")
> + "/; ");
> </CodeSnippet>
>
> Since the javascript regexp starts with '/' shouldn't any embedded '/'s
be
> escaped?
>
> I'll test it locally to see if it solves our problem and report back.
> --
> dIon Gillard, Multitask Consulting
> Work: http://www.multitask.com.au
> Developers: http://adslgateway.multitask.com.au/developers
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
> ForwardSourceID:NT0008ED16
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: relative path in forward?
Posted by Gemes Tibor <ge...@regens.hu>.
2002. november 15. 04:24 dátummal Doug Dates ezt írtad:
> Hi:
>
> I have a small question. It seems that there is no related discussion on
> the web.
>
> My questions: can I use relative path(without "/") in forward in
> struts-config.xml? For example: can I use <forward name="logon"
> path="logon.do"/> instead of using <forward name="logon"
> path="/logon.do"/>? Notice: there is no "/" before logon.do in the first
> forward. I appreciate your help.
There is no reason to use a forward without the leading slash. It is a
module-relative (or context-relative) path, and if you omit it you will be
forwarded to http://myhost/myContextlogin.do.
I think you are trying to solve the wrong problem. Please describe the reason
for what are you trying to do this, and I'm sure we can come up with some
better alternative.
Hth,
Tib
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
relative path in forward?
Posted by Doug Dates <hi...@yahoo.ca>.
Hi:
I have a small question. It seems that there is no related discussion on the
web.
My questions: can I use relative path(without "/") in forward in
struts-config.xml? For example: can I use <forward name="logon"
path="logon.do"/> instead of using <forward name="logon" path="/logon.do"/>?
Notice: there is no "/" before logon.do in the first forward. I appreciate
your help.
Thanks.
Doug
______________________________________________________________________
Post your free ad now! http://personals.yahoo.ca
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>