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:
 
The matcher is:

<map:match pattern="*.jsp">
  <map:act type="request">
     <map:parameter name="parameters" value="true" />
     <map:generate type="file" src="" mime-type="text/xml"/>
     <map:transform src=""/>
     <map:serialize type="xhtml"/>
   </map:act>
</map:match>

Hope this helps someone else!

Nesto!

 

----- Original Message -----
From: Jan Harms
Sent: Wednesday, February 05, 2003 3:29 PM
Subject: AW: matcher of a request

Nesto,
 
I´m not sure if this works, but try
 
</map:match>
   <map:match pattern="*.jsp">
   <map:generate type="file" 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}" />
  
<map:transform src=""/>
   <map:serialize type="xhtml"/>
</map:match>
 
The {request:yourparam} parts are so called input-modules. See:
 
 
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

Reply via email to