Re: matcher of a request
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: > > > > src="http://anotherhost:8080/anotherApp{../1}.jsp{requestQuery}"; >mime-type="text/xml"/> > > > > > > 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: > > > > > > > > > > > src="http://anotherhost:8080/anotherApp{../1}.jsp?username={username}&pa ssword={password}" > > mime-type="text/xml"/> > > > > > > > > > > > > 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]>
Re: matcher of a request
You can make this even more generic: http://anotherhost:8080/anotherApp{../1}.jsp{requestQuery}"; mime-type="text/xml"/> 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 <http://myhost.com:8080/cocoon/myApp/list.jsp?user=tom&password=tom> The matcher is: http://anotherhost:8080/anotherApp{../1}.jsp?username={username}&password={password}"; mime-type="text/xml"/> Hope this helps someone else! Nesto! - Original Message - *From:* Jan Harms <mailto:[EMAIL PROTECTED]> *To:* [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> *Sent:* Wednesday, February 05, 2003 3:29 PM *Subject:* AW: matcher of a request Nesto, I´m not sure if this works, but try src="http://anotherHost:8080/theApp/{1}.jsp?user={request:user}&password={request:password} <http://anotherHost:8080/theApp/{1}.jsp?user={request:user}&password={request:password}>" /> The {request:yourparam} parts are so called input-modules. See: http://xml.apache.org/cocoon/userdocs/concepts/modules.html Be careful with the generator type you choose. The JSP generator expects the location of a JSP-File. You are calling a jsp from another server, that means you have to use a generator that matches the *output* of this jsp. I.e if the jsp produces HTML you need the HTML-generator. In your case you need the file-generator since the jsp produces XML. Hope this helps, -Jan Harms -- Dr. Hussayn Dabbous SAXESS Software Design GmbH Neuenhöfer Allee 125 50935 Köln Telefon: +49-221-56011-0 Fax: +49-221-56011-20 E-Mail: [EMAIL PROTECTED] - 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]>
Re: matcher of a request
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: > Hope this helps someone else! Nesto! - Original Message - From: Jan Harms To: [EMAIL PROTECTED] Sent: Wednesday, February 05, 2003 3:29 PM Subject: AW: matcher of a request Nesto, I´m not sure if this works, but try http://anotherHost:8080/theApp/{1}.jsp?user={request:user}&password={request:password}" /> > The {request:yourparam} parts are so called input-modules. See: http://xml.apache.org/cocoon/userdocs/concepts/modules.html Be careful with the generator type you choose. The JSP generator expects the location of a JSP-File. You are calling a jsp from another server, that means you have to use a generator that matches the *output* of this jsp. I.e if the jsp produces HTML you need the HTML-generator. In your case you need the file-generator since the jsp produces XML. Hope this helps, -Jan Harms
AW: matcher of a request
Nesto, I´m not sure if this works, but try http://anotherHost:8080/theApp/{1}.jsp?user={request:user}&password={request:password}" /> > The {request:yourparam} parts are so called input-modules. See: http://xml.apache.org/cocoon/userdocs/concepts/modules.html Be careful with the generator type you choose. The JSP generator expects the location of a JSP-File. You are calling a jsp from another server, that means you have to use a generator that matches the *output* of this jsp. I.e if the jsp produces HTML you need the HTML-generator. In your case you need the file-generator since the jsp produces XML. Hope this helps, -Jan Harms -Ursprüngliche Nachricht-Von: Nesto [mailto:[EMAIL PROTECTED]]Gesendet: Mittwoch, 5. Februar 2003 15:00An: [EMAIL PROTECTED]Betreff: matcher of a request How can I write a matcher for this type of request: http://myhost.com:8080/cocoon/myApp/list.jsp?user=tom&password=tom I can't write a matcher that runs fine! I don't know how the parameters can be passed. The jsp runs on another server and generates a xml document. > How I have to modify the matcher?? Thanks in advance! Nesto
matcher of a request
How can I write a matcher for this type of request: http://myhost.com:8080/cocoon/myApp/list.jsp?user=tom&password=tom I can't write a matcher that runs fine! I don't know how the parameters can be passed. The jsp runs on another server and generates a xml document. > How I have to modify the matcher?? Thanks in advance! Nesto