I'm not sure what you try to achieve. If you want to do a select based
on the existence of an external URI, why don't you use the
resource-exists selector?

<map:select type="resource-exists">
<map:when test="http://myurl";>
<map:redirect-to uri="somehwere"/>
</map:when>
<map:otherwise>
<!-- do something else -->
</map:otherwise/>
</map:select>


Jasha Joachimsthal 
 
[email protected] - [email protected]
 
www.onehippo.com
Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam +31(0)20-5224466 
San Francisco - Hippo USA Inc. 101 H Street, suite Q Petaluma CA
94952-5100 +1 (707) 773-4646



> -----Original Message-----
> From: dynnamitt [mailto:[email protected]] 
> Sent: vrijdag 19 december 2008 12:05
> To: [email protected]
> Subject: http client as input module
> 
> 
> Do cocoon 2.1 have :
> 
> 1) an input module that can perform an HTTP GET request 
> 
> ..and just return response-body as pure text.
> 
> Sample use:
> ..
> <map:select type="parameter" >
> <map:parameter name="parameter-selector-test" 
> value="{http:{my-url}}"/>
>                               
>                               <map:when test="true">                  
>                                       <!-- redirect -->
>                               </map:when>
>                               
>                               <map:otherwise> 
>                                       <!-- do somethin else -->
>                               </map:otherwise>
>                               
>                       </map:select>
> 
> --
> View this message in context: 
> http://www.nabble.com/http-client-as-input-module-tp21089499p2
> 1089499.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]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to