Re: RegexpRequestParameterSelector unable to get working.

2008-05-07 Thread Andy Stevens
2008/5/6 Gordore <[EMAIL PROTECTED]>:
>  
> 
> 
> 
> 
>  />
> 
> 
> 
> 
>  
>  
> 
> 
> 
>  
> 
> 
>  
>  
>
>  http://server/cocoon/test?group=admin
> arg = false
>
>  http://server/cocoon/test?group=user
> arg = false

I see you have 
The -name suggests this map:parameter should be the name of the
request parameter to check rather than its value, which is what you're
supplying.  Try using just value="group" instead of {group}.
Otherwise, those requests are telling it to do the regexp tests
against the admin and user request parameters, which don't exist...
And since the selector looks up the specified request parameter
itself, that  is unnecessary too, unless you
need it for some other sitemap component.


Andy
-- 
http://pseudoq.sourceforge.net/  Open source java Sudoku generator

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RegexpRequestParameterSelector unable to get working.

2008-05-06 Thread Gordore

Hi,

I want to use the 'RegexpRequestParameterSelector' as I need to apply a
regular expression to a request parameter to dictate how the pipeline
operates.

Unfortunately when I apply a pattern or use the given examples it seems to
ignore the pattern and goes to the otherwise.

  
 
   ^$
   ^[0-9]+$
   ^.+$
   admin|manager
 
  
 























http://server/cocoon/test?group=admin
arg = false

http://server/cocoon/test?group=user
arg = false

Could anyone help?

Matt. Beaumont

-- 
View this message in context: 
http://www.nabble.com/RegexpRequestParameterSelector-unable-to-get-working.-tp17079274p17079274.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]