cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antonio Gallardo" <agalla...@agssa.net>
Subject RE: How to use context with XSP
Date Sat, 06 Nov 2004 00:29:07 GMT
Reuben Christie dijo:
> I am making little progress here..But there is a problem. here is my code
> sample . I am trying to create an attribute called id for user element and
> set its value from request parameter but its not working. If instead of
> using request parameter i put hardcode value then it works but i want to
> put
> value passed from request parameter
> can anybody help me
>
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xsp:page language="java" xmlns:xsp="http://apache.org/xsp"
> xmlns:xsp-request="http://apache.org/xsp/request/2.0"
> xmlns:xsp-session="http://apache.org/xsp/session/2.0"
> create-session="true"
> xmlns:session="http://apache.org/cocoon/session/1.0">
>    <page>
>       <session:createcontext name="trackdemo" />
>
>       <session:mergexml context="trackdemo" path="/context">
>          <entities>
>             <entity id="&lt;xsp-request:get-parameter name='id' /&gt;">
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                          |||||||||||||||||||||||||||||||||||||||||||||

This is illegal, you ned to use xsp:attribute:

See point 8 in: http://wiki.apache.org/cocoon/XSPSyntax

Best Regards,

Antonio Gallardo


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message