cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From java guru <javacoc...@yahoo.co.in>
Subject Re: RegExp Matcher not working?
Date Mon, 20 Aug 2001 14:21:37 GMT
Hi.,
  I am not sure how/what way you are testing this but
the regexp stuff is working for me...

Here is how i tested it on protected sub sitemap..

      <map:match pattern="[a-z]+2">
        <map:generate src="docs/login2.xml"/>
        <map:transform
src="stylesheets/simple-page2html.xsl"/>
        <map:serialize/>
      </map:match>

and following urls result in login2

http://localhost:8080/protected/l2
http://localhost:8080/protected/log2
http://localhost:8080/protected/login2

and following url resulted in normal login(as per
protected example)

http://localhost:8080/protected/login

Now, please note that i dont have "cocoon" in url
thats 'coz i made the cocoon as main app in
tomcat..and we can neglect that factor..

>From this, it defintely looks like the regexp is
WORKING...


 --- Max Larsson <max.larsson@gmservice.de> wrote: >
Hi,
> 
> if i use the default matcher wildcard the sitemap
> part below
> works fine. But if i change the default matcher from
> wildcard
> to regexp it does not work. Everthing is match equal
> as 'login'.
> 
> Does anyone knows why???
> 
> Max
> 
> 		<map:pipeline>
> 			<map:match pattern="login">
> 				<map:generate type="serverpages"
> src="login/login.xsp"/>
> 				<map:serialize/>
> 			</map:match>
> 			<map:match pattern="do-login">
> 				<map:act set="login">
> 					<map:generate type="serverpages"
> src="login/{login_page}.xsp"/>
> 					<map:transform
> src="stylesheets/page2html.xsl"/>
> 					<map:serialize/>
> 				</map:act>
> 			</map:match>
> 		</map:pipeline>
> 
> 
>
---------------------------------------------------------------------
> Please check that your question has not already been
> answered in the
> FAQ before posting.
> <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail:
> <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:
> <cocoon-users-help@xml.apache.org>
>  

=====
Thanks and have great day
srini

____________________________________________________________
Do You Yahoo!?
Send a newsletter, share photos & files, conduct polls, organize chat events. Visit http://in/
groups.yahoo.com

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message