Tim,

You need to pass the parameters to your xsp from the pipeline:

Example given:
     <map:pipeline>
       <map:match pattern="login">
           <!--=========================================================
           // use the value of param xspFile as the filename for the xsp
           //========================================================-->
           <map:generate type="serverpages" src="documents/{xspFile}">
 
<!--=========================================================
             // pass the parameter so xspFile is defined
 
//========================================================-->
             <map:parameter name="parameters" value="true" />
           </map:generate>
           <!--=========================================================
           // use the value of param xslFile as the filename for the xsl
           //========================================================-->
           <map:transform src="stylesheets/{xslFile}">
             <map:parameter name="parameters" value="true" />
           </map:transform>
           <map:serialize type="html" />
         </map:act>
       </map:match>
     </map:pipeline>

Hope that helps,
Cedric

-----Original Message-----
From: Tim Bachta [mailto:[EMAIL PROTECTED] 
Sent: 13 August 2003 14:58
To: [EMAIL PROTECTED]
Subject: Accepting an input parameter


I am calling a Cocoon page from another application using a <a href>
tag.  The url that I am calling is
http://localhost:8080/cocoon/test/login?userid=11
<http://localhost:8080/cocoon/test/login?userid=11> .  The problem I am
having is getting my xsp page to grab the value of the userid from the
input url.  How do I do this, I have tried using the
<xsp-request:get-parameter name="userid" default = "defaultinput"
as="string"/> but that does not work.  Do I need to add something to my
sitemap to pass that value through?  Can someone please help me, it
would be greatly appreciated.

 

Thanks

Tim 

 

 


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



--

This e-mail is confidential and is intended for the named recipient only. If
you receive it in error please destroy the message and all copies. Kainos
Software Ltd. does not accept liability for damage sustained as a result of
malicious software (e.g. viruses). Kainos does not accept liability for, or
permit, the creation of contracts on its behalf by e-mail, the publication of
any defamatory statement by its employees by e-mail, or changes subsequently
made to the original message. The Company's registered office is located at
4-6 Upper Crescent, Belfast, BT7 1NT, Northern Ireland, Tel +44 28 9057 1100.

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

Reply via email to