Dear Hussayn,
sorry, but this more generic matcher doesn't works!
The same matcher with the parameters explicitly written works!
I don't know why.
Your solution is better and the sitemap would be shorter...
If you can tell me if there is a difference... thank you!
Nesto

----- Original Message -----
From: "SAXESS - Hussayn Dabbous" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 06, 2003 12:36 PM
Subject: Re: matcher of a request


> You can make this even more generic:
>
> <map:match pattern="*.jsp">
>    <map:act type="request">
>       <map:generate type="file"
>        src="http://anotherhost:8080/anotherApp{../1}.jsp{requestQuery}";
>        mime-type="text/xml"/>
>       <map:transform src="stylesheets/{../1}.xsl"/>
>       <map:serialize type="xhtml"/>
>     </map:act>
> </map:match>
>
> This will simply copy the GET-parameters from your original request ;-)
> and i think it's slightly more performant ...
> regards, Hussayn
>
> Nesto wrote:
> > Thank you Jan for your help!!
> > Finally I wrote a matcher that works fine!
> > I post it to the group because it could be interesting.
> >
> > I wanted to write a matcher for an URI of this type:
> > http://myhost.com:8080/cocoon/myApp/list.jsp?user=tom&password=tom
> >
> > The matcher is:
> >
> > <map:match pattern="*.jsp">
> >   <map:act type="request">
> >      <map:parameter name="parameters" value="true" />
> >      <map:generate type="file"
> >
src="http://anotherhost:8080/anotherApp{../1}.jsp?username={username}&amp;pa
ssword={password}"
> > mime-type="text/xml"/>
> >      <map:transform src="stylesheets/{../1}.xsl"/>
> >      <map:serialize type="xhtml"/>
> >    </map:act>
> > </map:match>
> >
> > Hope this helps someone else!
> >
> > Nesto!
> >


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

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

Reply via email to