Title: passing parameters to xsp files
Hi,
Currently I'm working on a web application that uses an Oracle 8i database, Cocoon 2.0, Tomcat 4.1 and Apache 2.0. I'm using XSP to query, insert and update my database.
Now I stumbled upon the following problem. I've searched the web for answers
[EMAIL PROTECTED] wrote:
This all works fine, updating and everything. Except for this: I want
the right foreign key selected in my form. I cannot expect my users to
select the right owner in the drop down box everytime they do an
update. So I want to tell the owner.xsp file the owner_id of
Title: passing parameters to xsp files
Hi
Carolien,
I
guess you want something like this .
(I did
it in plain xml/xsl, didn't find the time to use cocoon on this one, but it's a
working sample.
Where
I use the document function in XSL, you should put the values you cincluded
)
I
On 2/06/2003 15:52 [EMAIL PROTECTED] wrote:
This all works fine, updating and everything. Except for this: I want
the right foreign key selected in my form. I cannot expect my users to
select the right owner in the drop down box everytime they do an update.
So I want to tell the owner.xsp file
I don't know if it's possible but why don't you try this :
map:match pattern=db/*/*.xsp
map:generate src=db/{1}/{2}.xsp type=xsp/
map:transform src=xsl/db.generatexsp.xsl/
map:serialize type=xml/
/map:match
map:match pattern=db/*/*.html
map:generate
No, that's the same ...
When the .html is called, the XSP can use the xsp-request:get-parameter
However, it calls a new match, where the values of the request are no longer
available
That's exactly my problem.
I don't know if it's possible but why don't you try this :
map:match
Hi,
I need to pass request parameters from one XSP to another
This is my sitemap
map:match pattern=db/*/*.xsp
map:generate src=db/{1}/{2}.xsp type=xsp/
map:transform src=xsl/db.generatexsp.xsl/
Hi All.
Another question:
I neeed to pass to XSP some file that
was evaluated previously in some pipeline (can pass it as a string), something
like:
map:generate
src=""
map:parameter
name="content" value="cocoon:/file.html"/
/map:generate
If I use cinclude inside XSP, I can
do nothing
Afonchenko
[mailto:[EMAIL PROTECTED]]Verzonden: woensdag 27 november 2002
12:32Aan: cocoon-usersOnderwerp: passing parameters to
XSP
Hi All.
Another question:
I neeed to pass to XSP some file
that was evaluated previously in some pipeline (can pass it as a string),
something like: