cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nesto" <nest...@libero.it>
Subject Re: Passing parameters
Date Tue, 11 Feb 2003 15:17:26 GMT
Hi Eduardo!
Your question is general, I don' know if I understand it well.
However, in the past weeks I had the same problem.
Here I post you the solution I found, with the great help of this community.
Hope this help for your problem to.

I wanted to write a matcher for an URI of this type:
http://myhost.com:8080/cocoon/myApp/list.jsp?param=value

The matcher is:
<map:match pattern="*.jsp">
  <map:act type="request">
     <map:parameter name="parameters" value="true" />
     <map:generate type="file"
src="http://anotherhost:8080/anotherApp{../1}.jsp?param={param}"
mime-type="text/xml"/>
     <map:transform src="stylesheets/{../1}.xsl"/>
     <map:serialize type="xhtml"/>
   </map:act>
</map:match>

Note: the jsp that generates xml data is included with type="file" and not
as type="jsp"

Nesto



----- Original Message -----
From: "Eduardo Zurita" <g000039@correo.cajacanarias.es>
To: <cocoon-users@xml.apache.org>
Sent: Tuesday, February 11, 2003 2:16 PM
Subject: Re: Passing parameters


> OK.
>
> is there a way to pass a parameter from the user querystring to a JSP
> generator?
>
> Thanks in advance
>
> Eduardo.
>


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


Mime
View raw message