You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Eduardo Zurita <g0...@correo.cajacanarias.es> on 2003/02/11 15:53:49 UTC

more specific question about parameters from querystring to JSP

I want to pass the parameter "username" with value "joe" to my generator (myservice.jsp)

The problem is:

    The user tries the page http://myserver/test.html?username=joe

    And i have the following in sitemap.xmap:

<map:pipeline>
    <map:match pattern="test.html">
      <map:act type="request">
        <map:parameter name="parameters" value="true"/>
        <map:generate type="jsp" src="services/myservice.jsp?{requestQuery}"/>  
      </map:act>
   <map:transform src="services/stylesheets/myservice.xsl"/>
      <map:serialize type="html"/>
    </map:match>
   </map:pipeline>
 </map:pipelines>

Well, it doesn't work !!! :-(

Is this the correct way?

Please help,

thanks in advance.

Eduardo.

Re: more specific question about parameters from querystring to JSP

Posted by SAXESS - Hussayn Dabbous <da...@saxess.com>.
you can make it even simpler:

<map:pipeline>
      <map:match pattern="test.html">
        <map:act type="request">
          <map:generate type="jsp"
  src="services/myservice.jsp{requestQuery}"/>
        </map:act>
     <map:transform src="services/stylesheets/myservice.xsl"/>
        <map:serialize type="html"/>
      </map:match>
     </map:pipeline>
</map:pipelines>


SAXESS - Hussayn Dabbous wrote:
> You dont need the "?"
> try (error marked with '<== look here ':
> <map:pipeline>
>      <map:match pattern="test.html">
>        <map:act type="request">
>          <map:parameter name="parameters" value="true"/>
>          <map:generate type="jsp"
>  src="services/myservice.jsp{requestQuery}"/>  <== look here
>        </map:act>
>     <map:transform src="services/stylesheets/myservice.xsl"/>
>        <map:serialize type="html"/>
>      </map:match>
>     </map:pipeline>
> </map:pipelines>
> 
> Eduardo Zurita wrote:
> 
>> I want to pass the parameter "username" with value "joe" to my 
>> generator (myservice.jsp)
>>  
>> The problem is:
>>  
>>     The user tries the page http://myserver/test.html?username=joe
>>  
>>     And i have the following in sitemap.xmap:
>>  
>> <map:pipeline>
>>     <map:match pattern="test.html">
>>       <map:act type="request">
>>         <map:parameter name="parameters" value="true"/>
>>         <map:generate type="jsp" 
>> src="services/myservice.jsp?{requestQuery}"/>        </map:act>
>>    <map:transform src="services/stylesheets/myservice.xsl"/>
>>       <map:serialize type="html"/>
>>     </map:match>
>>    </map:pipeline>
>>  </map:pipelines>
>>  
>> Well, it doesn't work !!! :-(
>>  
>> Is this the correct way?
>>  
>> Please help,
>>  
>> thanks in advance.
>>  
>> Eduardo.
> 
> 

-- 
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:  dabbous@saxess.com


---------------------------------------------------------------------
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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: more specific question about parameters from querystring to JSP

Posted by Eduardo Zurita <g0...@correo.cajacanarias.es>.
Thanks, it worked !!!

----- Original Message -----
From: "SAXESS - Hussayn Dabbous" <da...@saxess.com>
To: <co...@xml.apache.org>
Sent: Tuesday, February 11, 2003 2:56 PM
Subject: Re: more specific question about parameters from querystring to JSP


> You dont need the "?"
> try (error marked with '<== look here ':
> <map:pipeline>
>       <map:match pattern="test.html">
>         <map:act type="request">
>           <map:parameter name="parameters" value="true"/>
>           <map:generate type="jsp"
>   src="services/myservice.jsp{requestQuery}"/>  <== look here
>         </map:act>
>      <map:transform src="services/stylesheets/myservice.xsl"/>
>         <map:serialize type="html"/>
>       </map:match>
>      </map:pipeline>
> </map:pipelines>
>
> Eduardo Zurita wrote:
> > I want to pass the parameter "username" with value "joe" to my generator
> > (myservice.jsp)
> >
> > The problem is:
> >
> >     The user tries the page http://myserver/test.html?username=joe
> >
> >     And i have the following in sitemap.xmap:
> >
> > <map:pipeline>
> >     <map:match pattern="test.html">
> >       <map:act type="request">
> >         <map:parameter name="parameters" value="true"/>
> >         <map:generate type="jsp"
> > src="services/myservice.jsp?{requestQuery}"/>
> >       </map:act>
> >    <map:transform src="services/stylesheets/myservice.xsl"/>
> >       <map:serialize type="html"/>
> >     </map:match>
> >    </map:pipeline>
> >  </map:pipelines>
> >
> > Well, it doesn't work !!! :-(
> >
> > Is this the correct way?
> >
> > Please help,
> >
> > thanks in advance.
> >
> > Eduardo.
>
> --
> 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:  dabbous@saxess.com
>
>
> ---------------------------------------------------------------------
> 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:     <co...@xml.apache.org>
> For additional commands, e-mail:   <co...@xml.apache.org>
>


---------------------------------------------------------------------
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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: more specific question about parameters from querystring to JSP

Posted by SAXESS - Hussayn Dabbous <da...@saxess.com>.
You dont need the "?"
try (error marked with '<== look here ':
<map:pipeline>
      <map:match pattern="test.html">
        <map:act type="request">
          <map:parameter name="parameters" value="true"/>
          <map:generate type="jsp"
  src="services/myservice.jsp{requestQuery}"/>  <== look here
        </map:act>
     <map:transform src="services/stylesheets/myservice.xsl"/>
        <map:serialize type="html"/>
      </map:match>
     </map:pipeline>
</map:pipelines>

Eduardo Zurita wrote:
> I want to pass the parameter "username" with value "joe" to my generator 
> (myservice.jsp)
>  
> The problem is:
>  
>     The user tries the page http://myserver/test.html?username=joe
>  
>     And i have the following in sitemap.xmap:
>  
> <map:pipeline>
>     <map:match pattern="test.html">
>       <map:act type="request">
>         <map:parameter name="parameters" value="true"/>
>         <map:generate type="jsp" 
> src="services/myservice.jsp?{requestQuery}"/>  
>       </map:act>
>    <map:transform src="services/stylesheets/myservice.xsl"/>
>       <map:serialize type="html"/>
>     </map:match>
>    </map:pipeline>
>  </map:pipelines>
>  
> Well, it doesn't work !!! :-(
>  
> Is this the correct way?
>  
> Please help,
>  
> thanks in advance.
>  
> Eduardo.

-- 
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:  dabbous@saxess.com


---------------------------------------------------------------------
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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>