You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Jens Grote <Gr...@gmx.de> on 2002/08/21 13:30:03 UTC

how to hand over parameter to an url?

hi,

i have a webpage, where one link opens a new webpage. this link is a url
with a parameter including. 

it seems, that cocoon cut the parameter off. the page can not be shown. (the
parameter is something like a session number.)

my sidemap entry is:


<map:match pattern="*.jsp" type="wildcard">
<map:generate src="http://localhost:8080/not-cocoon/mydir/{1}.jsp"
type="html">
</map:generate>   
<map:serialize/>
</map:match>

the .jsp sides are generated into xml by an other servlet. therefore i need
the whole url. 

can i hand over dynamic parameters?

i tried something like this:

<map:parameter name="*" value="{2}"/>
in the generator tag, but it doesn't work.

error message is 'resource not found' strange to say. 

thanks and greets

jens



-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


---------------------------------------------------------------------
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: how to hand over parameter to an url?

Posted by Jens Grote <Gr...@gmx.de>.
sorry, but that doesn't work.

maybe i should explain my prob a little bit more precisely. the url i want
to reach per link is: 

http://localhost:8080/cocoon/newly/Create.jsp?:coded=872898000

map:match pattern="*.jsp" type="wildcard">
map:generate
src="http://localhost:8080/other-servlet/mydir/{1}.jsp"
type="html">
</map:generate>   
<map:serialize/>
</map:match>

my sidemap entry tries to reach another servlet than cocoon, the
'other-servlet' servlet. this other-servlet generate out of a jsp page a html page
(independent of cocoon), handles it over to cocoon and cocoon handels it over to
tomcat. it works fine, if i the *.jsp page i request through the client do not
need any parameters. in this case the response is resource not found.

in other, if i use javascript and form, the requested output is not shown
(the response is empty). 

your solution doesn't work in any of this two cases.

greetings

jens


> I guess the following sitemap would work,,,
> 
> 
> <map:match pattern="*.jsp" type="wildcard">
>  <map:generate
> 
> src="http://localhost:8080/not-cocoon/mydir/{1}.jsp{requestQuery}"
>  type="html">
>  </map:generate>   
>  <map:serialize/>
>  </map:match> 
> 
> 
> Kavitha
> 
> 
> 
> 
> --- Jens Grote <Gr...@gmx.de> wrote: > hi,
> > 
> > i have a webpage, where one link opens a new
> > webpage. this link is a url
> > with a parameter including. 
> > 
> > it seems, that cocoon cut the parameter off. the
> > page can not be shown. (the
> > parameter is something like a session number.)
> > 
> > my sidemap entry is:
> > 
> > 
> > <map:match pattern="*.jsp" type="wildcard">
> > <map:generate
> > src="http://localhost:8080/not-cocoon/mydir/{1}.jsp"
> > type="html">
> > </map:generate>   
> > <map:serialize/>
> > </map:match>
> > 
> > the .jsp sides are generated into xml by an other
> > servlet. therefore i need
> > the whole url. 
> > 
> > can i hand over dynamic parameters?
> > 
> > i tried something like this:
> > 
> > <map:parameter name="*" value="{2}"/>
> > in the generator tag, but it doesn't work.
> > 
> > error message is 'resource not found' strange to
> > say. 
> > 
> > thanks and greets
> > 
> > jens
> > 
> > 
> > 
> > -- 
> > GMX - Die Kommunikationsplattform im Internet.
> > http://www.gmx.net
> > 
> > 
> >
> ---------------------------------------------------------------------
> > 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>
> >  
> 
> ________________________________________________________________________
> Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!!
>        visit http://in.autos.yahoo.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>
> 

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


---------------------------------------------------------------------
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: how to hand over parameter to an url?

Posted by kavitha ramesh <ka...@yahoo.co.in>.
I guess the following sitemap would work,,,


<map:match pattern="*.jsp" type="wildcard">
 <map:generate

src="http://localhost:8080/not-cocoon/mydir/{1}.jsp{requestQuery}"
 type="html">
 </map:generate>   
 <map:serialize/>
 </map:match> 


Kavitha




--- Jens Grote <Gr...@gmx.de> wrote: > hi,
> 
> i have a webpage, where one link opens a new
> webpage. this link is a url
> with a parameter including. 
> 
> it seems, that cocoon cut the parameter off. the
> page can not be shown. (the
> parameter is something like a session number.)
> 
> my sidemap entry is:
> 
> 
> <map:match pattern="*.jsp" type="wildcard">
> <map:generate
> src="http://localhost:8080/not-cocoon/mydir/{1}.jsp"
> type="html">
> </map:generate>   
> <map:serialize/>
> </map:match>
> 
> the .jsp sides are generated into xml by an other
> servlet. therefore i need
> the whole url. 
> 
> can i hand over dynamic parameters?
> 
> i tried something like this:
> 
> <map:parameter name="*" value="{2}"/>
> in the generator tag, but it doesn't work.
> 
> error message is 'resource not found' strange to
> say. 
> 
> thanks and greets
> 
> jens
> 
> 
> 
> -- 
> GMX - Die Kommunikationsplattform im Internet.
> http://www.gmx.net
> 
> 
>
---------------------------------------------------------------------
> 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>
>  

________________________________________________________________________
Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!!
       visit http://in.autos.yahoo.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>